diff --git a/ed.c b/ed.c index a9aacf1..17b925b 100644 --- a/ed.c +++ b/ed.c @@ -809,9 +809,8 @@ join(void) int i; char *t, c; size_t len = 0, cap = 0; - static char *s; + char *s; - free(s); for (s = NULL, i = line1;; i = nextln(i)) { for (t = gettxt(i); (c = *t) != '\n'; ++t) s = addchar(*t, s, &cap, &len);