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:
parent
1006467f33
commit
21a779235d
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue