Explorar o código

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

Fixes #190.
Arthur O'Dwyer %!s(int64=5) %!d(string=hai) anos
pai
achega
c62796cd7b
Modificáronse 1 ficheiros con 3 adicións e 0 borrados
  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;
 }