diff options
author | corvid <corvid@lavabit.com> | 2009-05-07 09:37:09 -0400 |
---|---|---|
committer | corvid <corvid@lavabit.com> | 2009-05-07 09:37:09 -0400 |
commit | bccf0ce1cc305acd8c1300f3abd3430b3a946ebe (patch) | |
tree | 09dba3a35ebf64d670ced23fc9b3cc39a3f93509 /src | |
parent | 6ded9dbd68b96d8ae581a7114b65e9b63ef2f35f (diff) |
Fix a memory leak in a_Klist_free()
Diffstat (limited to 'src')
-rw-r--r-- | src/klist.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/klist.c b/src/klist.c index 8fb09853..813269a3 100644 --- a/src/klist.c +++ b/src/klist.c @@ -117,7 +117,7 @@ void a_Klist_free(Klist_t **KlistPtr) while (dList_length(Klist->List) > 0) { node = dList_nth_data(Klist->List, 0); - dList_remove_fast(Klist->List, 0); + dList_remove_fast(Klist->List, node); dFree(node); } dList_free(Klist->List); |