changeset 1079:aa1b2cac9edc

Fix a memory leak in a_Klist_free()
author corvid <corvid@lavabit.com>
date Thu, 07 May 2009 09:37:09 -0400
parents fdcb2ef163c0
children 9003bfb74965 5037653f64a4
files src/klist.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/klist.c	Thu May 07 09:20:17 2009 -0400
+++ b/src/klist.c	Thu May 07 09:37:09 2009 -0400
@@ -117,7 +117,7 @@
 
    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);