Skip to content

Commit

Permalink
#207: Resource leak (in bbuf_clone())
Browse files Browse the repository at this point in the history
  • Loading branch information
kkos committed Sep 21, 2020
1 parent 2f49376 commit af1eed1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/regparse.c
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,7 @@ bbuf_clone(BBuf** rto, BBuf* from)
CHECK_NULL_RETURN_MEMERR(to);
r = BB_INIT(to, from->alloc);
if (r != 0) {
xfree(to->p);
bbuf_free(to);
*rto = 0;
return r;
}
Expand Down

0 comments on commit af1eed1

Please sign in to comment.