Explorar el Código

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

Fixes #190.
Arthur O'Dwyer hace 5 años
padre
commit
c62796cd7b
Se han modificado 1 ficheros con 3 adiciones y 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;
 }