leak-detective: Reset leak list during cleanup
authorMartin Willi <martin@revosec.ch>
Wed, 16 Oct 2013 09:16:41 +0000 (11:16 +0200)
committerMartin 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

index b001eee..87e21bb 100644 (file)
@@ -940,6 +940,7 @@ METHOD(leak_detective_t, destroy, void,
        lock->destroy(lock);
        thread_disabled->destroy(thread_disabled);
        free(this);
+       first_header.next = NULL;
 }
 
 /*