diff options
Diffstat (limited to 'bin/ed')
-rw-r--r-- | bin/ed/re.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/bin/ed/re.c b/bin/ed/re.c index 3fad099..2bf1221 100644 --- a/bin/ed/re.c +++ b/bin/ed/re.c @@ -86,7 +86,8 @@ optpat() patlock = 0; if (n = regcomp(exp, exps, 0)) { regerror(n, exp, errmsg, sizeof errmsg); - return NULL; + free(exp); + return exp = NULL; } return exp; } |