فهرست منبع

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

Fixes #190.
Arthur O'Dwyer 5 سال پیش
والد
کامیت
c62796cd7b
1فایلهای تغییر یافته به همراه3 افزوده شده و 0 حذف شده
  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;
 }