Skip to content

Commit

Permalink
HASH_CLEAR after some tests, to eliminate "memory leak" warnings.
Browse files Browse the repository at this point in the history
  • Loading branch information
Quuxplusone committed Dec 2, 2020
1 parent 7f0aadb commit c62796c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/test10.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

0 comments on commit c62796c

Please sign in to comment.