mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
Remove redundant null checks.
This commit is contained in:
+2
-4
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user