strongswan.org
Wiki/Project Management
Downloads
Gitweb
projects
/
strongswan.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a426851
)
leak-detective: Reset leak list during cleanup
author
Martin Willi
<martin@revosec.ch>
Wed, 16 Oct 2013 09:16:41 +0000
(11:16 +0200)
committer
Martin Willi
<martin@revosec.ch>
Wed, 6 Nov 2013 09:30:59 +0000
(10:30 +0100)
This resets leak detective state should it get created/destroyed more than once.
src/libstrongswan/utils/leak_detective.c
patch
|
blob
|
history
diff --git
a/src/libstrongswan/utils/leak_detective.c
b/src/libstrongswan/utils/leak_detective.c
index
b001eee
..
87e21bb
100644
(file)
--- a/
src/libstrongswan/utils/leak_detective.c
+++ b/
src/libstrongswan/utils/leak_detective.c
@@
-940,6
+940,7
@@
METHOD(leak_detective_t, destroy, void,
lock->destroy(lock);
thread_disabled->destroy(thread_disabled);
free(this);
+ first_header.next = NULL;
}
/*