diff options
Diffstat (limited to 'editors/sed.c')
-rw-r--r-- | editors/sed.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/editors/sed.c b/editors/sed.c index 23e9d54..df62346 100644 --- a/editors/sed.c +++ b/editors/sed.c @@ -130,8 +130,7 @@ static void destroy_cmd_strs(void) regfree(sed_cmds[ncmds].sub_match); free(sed_cmds[ncmds].sub_match); } - if (sed_cmds[ncmds].replace) - free(sed_cmds[ncmds].replace); + free(sed_cmds[ncmds].replace); } /* destroy the array */ |