Skip to content
Browse files

fix memory leak in fuction:make_cdump_irep

  • Loading branch information...
1 parent 4500302 commit 1187bb5f055fc9814790e9d71bb5698c7a055ecd @skandhas skandhas committed Dec 19, 2012
Showing with 4 additions and 0 deletions.
  1. +4 −0 src/cdump.c
View
4 src/cdump.c
@@ -166,6 +166,10 @@ make_cdump_irep(mrb_state *mrb, int irep_no, FILE *f)
}
else
SOURCE_CODE0("");
+
+ if (buf)
+ mrb_free(mrb, buf);
+
return MRB_CDUMP_OK;
}

0 comments on commit 1187bb5

Please sign in to comment.
Something went wrong with that request. Please try again.