commit | 30da327fbd27eee508c5492a763ea19d7cd9e281 | [log] [tgz] |
---|---|---|
author | Thomas Mannay <audiobarrier@openmailbox.org> | Sun Oct 09 23:13:13 2016 +0000 |
committer | Laslo Hunhold <dev@frign.de> | Tue Dec 27 12:50:25 2016 +0100 |
tree | 01ae972fea1095c6806dc9e6ad1359d7982b0538 | |
parent | 2304df908c2f0741fb72c6d03e1f45fffdf69649 [diff] |
ed: remove double free in join()
diff --git a/ed.c b/ed.c index a9aacf1..17b925b 100644 --- a/ed.c +++ b/ed.c
@@ -809,9 +809,8 @@ 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);