summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjirka-h <hladky.jiri@gmail.com>2020-06-18 17:20:50 +0200
committerGitHub <noreply@github.com>2020-06-18 17:20:50 +0200
commit74876420d9a7bb7a00205c0f59e2b3eea7126daf (patch)
tree03c38dedd04bd453bff65f8f5e26db84fa96a2cc
parentUpdated ChangeLog (diff)
parentfix a memory leak in havege_destroy (diff)
downloadhaveged-74876420d9a7bb7a00205c0f59e2b3eea7126daf.tar.xz
haveged-74876420d9a7bb7a00205c0f59e2b3eea7126daf.zip
Merge pull request #40 from PrinterFranklin/fix_memory_leak
fix a memory leak in havege_destroy
-rw-r--r--src/havege.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/havege.c b/src/havege.c
index a75f5e7..1b7a979 100644
--- a/src/havege.c
+++ b/src/havege.c
@@ -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)