aboutsummaryrefslogtreecommitdiff
path: root/editors/sed.c
diff options
context:
space:
mode:
authoraaronl <aaronl@69ca8d6d-28ef-0310-b511-8ec308f3f277>2002-11-28 11:27:31 +0000
committeraaronl <aaronl@69ca8d6d-28ef-0310-b511-8ec308f3f277>2002-11-28 11:27:31 +0000
commit59b0f5c27b3eec8ce589d520b5a13cd3db0d8203 (patch)
treecda2b13f10ca1ab0a3559d4b6ff663ed20d7106c /editors/sed.c
parentb93e459224de0e63b0dcfb691aecbefac4bf665a (diff)
downloadbusybox-w32-59b0f5c27b3eec8ce589d520b5a13cd3db0d8203.tar.gz
busybox-w32-59b0f5c27b3eec8ce589d520b5a13cd3db0d8203.tar.bz2
busybox-w32-59b0f5c27b3eec8ce589d520b5a13cd3db0d8203.zip
Change if(x)free(x); to free(x);
git-svn-id: svn://busybox.net/trunk/busybox@6055 69ca8d6d-28ef-0310-b511-8ec308f3f277
Diffstat (limited to 'editors/sed.c')
-rw-r--r--editors/sed.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/editors/sed.c b/editors/sed.c
index 23e9d545b..df623465f 100644
--- a/editors/sed.c
+++ b/editors/sed.c
@@ -130,8 +130,7 @@ static void destroy_cmd_strs(void)
130 regfree(sed_cmds[ncmds].sub_match); 130 regfree(sed_cmds[ncmds].sub_match);
131 free(sed_cmds[ncmds].sub_match); 131 free(sed_cmds[ncmds].sub_match);
132 } 132 }
133 if (sed_cmds[ncmds].replace) 133 free(sed_cmds[ncmds].replace);
134 free(sed_cmds[ncmds].replace);
135 } 134 }
136 135
137 /* destroy the array */ 136 /* destroy the array */