diff options
author | Anakin Zhang <benjamin93@163.com> | 2020-06-17 11:44:46 +0200 |
---|---|---|
committer | Anakin Zhang <benjamin93@163.com> | 2020-06-17 11:44:46 +0200 |
commit | cbef34bd53e687fdad2ca2cb53a4fa1875655dea (patch) | |
tree | 03c38dedd04bd453bff65f8f5e26db84fa96a2cc /src/havege.c | |
parent | Updated ChangeLog (diff) | |
download | haveged-cbef34bd53e687fdad2ca2cb53a4fa1875655dea.tar.xz haveged-cbef34bd53e687fdad2ca2cb53a4fa1875655dea.zip |
fix a memory leak in havege_destroy
Diffstat (limited to 'src/havege.c')
-rw-r--r-- | src/havege.c | 2 |
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) |