Skip to content

Commit

Permalink
fix memory leak in fuction:make_cdump_irep
Browse files Browse the repository at this point in the history
  • Loading branch information
skandhas committed Dec 19, 2012
1 parent 4500302 commit 1187bb5
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/cdump.c
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -166,6 +166,10 @@ make_cdump_irep(mrb_state *mrb, int irep_no, FILE *f)
} }
else else
SOURCE_CODE0(""); SOURCE_CODE0("");

if (buf)
mrb_free(mrb, buf);

return MRB_CDUMP_OK; return MRB_CDUMP_OK;
} }


Expand Down

0 comments on commit 1187bb5

Please sign in to comment.