From: Ralph Corderoy Date: Fri, 27 Oct 2017 12:00:13 +0000 (+0100) Subject: imaptest.c: Don't free brkstring()'s value; it's re-used. X-Git-Url: https://diplodocus.org/git/nmh/commitdiff_plain/805bd2f9d717c019630293bcd82be25965d9f355?hp=d6c3b7e970429b2d8325161a749fe06858d234bc imaptest.c: Don't free brkstring()'s value; it's re-used. Subsequent calls to brkstring() write to free'd memory, corrupting malloc()'s internal data. --- diff --git a/uip/imaptest.c b/uip/imaptest.c index 66c033ce..0e721ce2 100644 --- a/uip/imaptest.c +++ b/uip/imaptest.c @@ -427,7 +427,6 @@ parse_capability(const char *cap, unsigned int len) } } - free(caplist); free(str); }