Bugfixing: free our hashpositions...
authorWilfried Goesgens <dothebart@citadel.org>
Sun, 12 Dec 2010 14:02:40 +0000 (15:02 +0100)
committerWilfried Goesgens <dothebart@citadel.org>
Sun, 12 Dec 2010 14:10:26 +0000 (15:10 +0100)
libcitadel/tests/hashlist_test.c

index d7a1e19996e1c504c05b1149d866e33613de5ce1..af304f360483d08dfb9fc371880660d9eb65c05e 100644 (file)
@@ -111,6 +111,7 @@ static void TestHashlistAddDelete (void)
 
        printf("Remove first\n");
        DeleteEntryFromHash(H, at);
+       DeleteHashPos(&at);
 
        ValidateBackAndForth(H);
 
@@ -139,7 +140,7 @@ static void TestHashlistAddDelete (void)
 
        ValidateBackAndForth(H);
 
-
+       DeleteHashPos(&at);
        DeleteHash(&H);
 }