Skip to content

Commit

Permalink
Merge pull request #40 from PrinterFranklin/fix_memory_leak
Browse files Browse the repository at this point in the history
fix a memory leak in havege_destroy
  • Loading branch information
jirka-h authored Jun 18, 2020
2 parents 02674ae + cbef34b commit 7487642
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/havege.c
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ void havege_destroy( /* RETURN: none */
free(temp);
}
#ifdef ONLINE_TESTS_ENABLE
else if (0 != (temp=hptr->testData)) {
if (0 != (temp=hptr->testData)) {
double *g = ((procShared *)temp)->G;
hptr->testData = 0;
if (0 != g)
Expand Down

0 comments on commit 7487642

Please sign in to comment.