diff options
Diffstat (limited to 'editors')
-rw-r--r-- | editors/sed.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/editors/sed.c b/editors/sed.c index b08eae4dc..f58f442e8 100644 --- a/editors/sed.c +++ b/editors/sed.c | |||
@@ -556,10 +556,8 @@ static void add_cmd(char *cmdstr) | |||
556 | } | 556 | } |
557 | 557 | ||
558 | /* If we glued multiple lines together, free the memory. */ | 558 | /* If we glued multiple lines together, free the memory. */ |
559 | if(add_cmd_line) { | 559 | free(add_cmd_line); |
560 | free(add_cmd_line); | 560 | add_cmd_line=NULL; |
561 | add_cmd_line=NULL; | ||
562 | } | ||
563 | } | 561 | } |
564 | 562 | ||
565 | /* Append to a string, reallocating memory as necessary. */ | 563 | /* Append to a string, reallocating memory as necessary. */ |