diff options
| author | Yukihiro "Matz" Matsumoto <[email protected]> | 2013-01-08 20:14:27 -0800 |
|---|---|---|
| committer | Yukihiro "Matz" Matsumoto <[email protected]> | 2013-01-08 20:14:27 -0800 |
| commit | 2c6d34f109c556b8e825aaeb2642f4377ae2f88e (patch) | |
| tree | f04ee0859cb10cfc99f8baf9841a2459ed071549 /src/dump.c | |
| parent | b5830aed17f0623175a4befc7d39a21b217992e7 (diff) | |
| parent | 94fb04a51e290d4f4a6bf64dc97996ecfdc3373a (diff) | |
| download | mruby-2c6d34f109c556b8e825aaeb2642f4377ae2f88e.tar.gz mruby-2c6d34f109c556b8e825aaeb2642f4377ae2f88e.zip | |
Merge pull request #709 from monaka/pr-remove-redundant-null-checks
Remove redundant null checks.
Diffstat (limited to 'src/dump.c')
| -rw-r--r-- | src/dump.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/dump.c b/src/dump.c index c32703a17..374f709ee 100644 --- a/src/dump.c +++ b/src/dump.c @@ -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); } |
