Skip to content

Commit

Permalink
test: fix some test memory leaks
Browse files Browse the repository at this point in the history
Signed-off-by: William Casarin <[email protected]>
  • Loading branch information
jb55 committed Dec 17, 2024
1 parent a17d68b commit 3cda406
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions test.c
Original file line number Diff line number Diff line change
Expand Up @@ -333,6 +333,7 @@ static void test_reaction_counter()
assert(reactions == 2);
ndb_end_query(&txn);
ndb_destroy(ndb);
free(json);
}

static void test_profile_search(struct ndb *ndb)
Expand Down Expand Up @@ -415,6 +416,7 @@ static void test_profile_updates()
assert(!strcmp(name, "c"));

ndb_destroy(ndb);
free(json);
}

static void test_load_profiles()
Expand Down

0 comments on commit 3cda406

Please sign in to comment.