mirror of
https://gitlab.freedesktop.org/libfprint/libfprint.git
synced 2025-11-15 07:38:12 +00:00
mindtct: Fix powmax_dirs leak on error
A copy/paste error meant we were trying to free a variable we only just failed to allocate. Spotted by Seth Arnold Closes: #81
This commit is contained in:
@@ -725,7 +725,7 @@ int alloc_power_stats(int **owis, double **opowmaxs, int **opowmax_dirs,
|
|||||||
/* Free memory allocated to this point. */
|
/* Free memory allocated to this point. */
|
||||||
free(wis);
|
free(wis);
|
||||||
free(powmaxs);
|
free(powmaxs);
|
||||||
free(pownorms);
|
free(powmax_dirs);
|
||||||
fprintf(stderr, "ERROR : alloc_power_stats : malloc : pownorms\n");
|
fprintf(stderr, "ERROR : alloc_power_stats : malloc : pownorms\n");
|
||||||
return(-53);
|
return(-53);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user