Skip to content

Commit

Permalink
tests: prevent memory leak in test-json
Browse files Browse the repository at this point in the history
  • Loading branch information
t-8ch authored and haraldh committed Nov 22, 2022
1 parent 451e816 commit 1ac0dab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/test-json.c
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ static int read_file(FILE *file, char **contentsp) {
int main(int argc, char **argv) {
_cleanup_(freep) char *input = NULL;
_cleanup_(fclosep) FILE *file = NULL;
VarlinkObject *s;
_cleanup_(varlink_object_unrefp) VarlinkObject *s = NULL;

assert(argc != 1);

Expand Down

0 comments on commit 1ac0dab

Please sign in to comment.