Remove redundant null checks.

This commit is contained in:
Masaki Muranaka
2013-01-09 11:22:39 +09:00
parent b5830aed17
commit 94fb04a51e
3 changed files with 6 additions and 12 deletions
+2 -4
View File
@@ -409,8 +409,7 @@ write_pool_block(mrb_state *mrb, mrb_irep *irep, char *buf, int type)
}
error_exit:
if (char_buf)
mrb_free(mrb, char_buf);
mrb_free(mrb, char_buf);
return (int)(buf - buf_top);
}
@@ -455,8 +454,7 @@ write_syms_block(mrb_state *mrb, mrb_irep *irep, char *buf, int type)
}
error_exit:
if (char_buf)
mrb_free(mrb, char_buf);
mrb_free(mrb, char_buf);
return (int)(buf - buf_top);
}