summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorAnakin Zhang <benjamin93@163.com>2020-06-17 11:44:46 +0200
committerAnakin Zhang <benjamin93@163.com>2020-06-17 11:44:46 +0200
commitcbef34bd53e687fdad2ca2cb53a4fa1875655dea (patch)
tree03c38dedd04bd453bff65f8f5e26db84fa96a2cc /src
parentUpdated ChangeLog (diff)
downloadhaveged-cbef34bd53e687fdad2ca2cb53a4fa1875655dea.tar.xz
haveged-cbef34bd53e687fdad2ca2cb53a4fa1875655dea.zip
fix a memory leak in havege_destroy
Diffstat (limited to 'src')
-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)