Skip to content

Commit

Permalink
test93
Browse files Browse the repository at this point in the history
  • Loading branch information
Quuxplusone committed Jul 8, 2022
1 parent 9c820c3 commit a5f2a7c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tests/test93.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#pragma GCC diagnostic ignored "-Wanalyzer-malloc-leak"

#include <assert.h>
#include <stdio.h>
#include <setjmp.h>
Expand Down Expand Up @@ -89,6 +91,7 @@ int main()
break;
}
user = (example_user_t*)malloc(sizeof(example_user_t));
assert(user != NULL);
user->id = user_id;
if (!setjmp(j_buf)) {
HASH_ADD_INT(users, id, user);
Expand All @@ -111,8 +114,6 @@ int main()
malloc_cnt = 0;
}

HASH_CLEAR(hh, users);

printf("End\n");
return 0;
}

0 comments on commit a5f2a7c

Please sign in to comment.