Sfoglia il codice sorgente

HASH_CLEAR after some tests, to eliminate "memory leak" warnings.

Fixes #190.
Arthur O'Dwyer 5 anni fa
parent
commit
c62796cd7b
1 ha cambiato i file con 3 aggiunte e 0 eliminazioni
  1. 3 0
      tests/test10.c

+ 3 - 0
tests/test10.c

@@ -47,5 +47,8 @@ int main()
     HASH_FIND(alth,altusers,&i,sizeof(int),tmp);
     printf("%d %s in alth\n", i, (tmp != NULL) ? "found" : "not found");
 
+    HASH_CLEAR(hh, users);
+    HASH_CLEAR(alth, altusers);
+
     return 0;
 }