summaryrefslogtreecommitdiffhomepage
path: root/src/cdump.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/cdump.c')
-rw-r--r--src/cdump.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/cdump.c b/src/cdump.c
index 89ae0bbff..7cb159046 100644
--- a/src/cdump.c
+++ b/src/cdump.c
@@ -167,8 +167,7 @@ make_cdump_irep(mrb_state *mrb, int irep_no, FILE *f)
else
SOURCE_CODE0("");
- if (buf)
- mrb_free(mrb, buf);
+ mrb_free(mrb, buf);
return MRB_CDUMP_OK;
}