Skip to content

Commit

Permalink
sources/counter.c: fix memory leak (#558)
Browse files Browse the repository at this point in the history
found by cppcheck
  • Loading branch information
chipitsine authored Feb 6, 2024
1 parent 4b9793b commit 72c5469
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions sources/counter.c
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ od_bucket_t *od_bucket_create(void)
return b;
}

free(b);
return NULL;
}

Expand Down

0 comments on commit 72c5469

Please sign in to comment.