]> diplodocus.org Git - nmh/commitdiff
imaptest.c: Don't free brkstring()'s value; it's re-used.
authorRalph Corderoy <ralph@inputplus.co.uk>
Fri, 27 Oct 2017 12:00:13 +0000 (13:00 +0100)
committerRalph Corderoy <ralph@inputplus.co.uk>
Fri, 27 Oct 2017 14:08:33 +0000 (15:08 +0100)
Subsequent calls to brkstring() write to free'd memory, corrupting
malloc()'s internal data.

uip/imaptest.c

index 66c033ceff291c91e6ad422cd72815f3e8929fae..0e721ce2a8037a080107f1df65b377de183d02d6 100644 (file)
@@ -427,7 +427,6 @@ parse_capability(const char *cap, unsigned int len)
        }
     }
 
        }
     }
 
-    free(caplist);
     free(str);
 }
 
     free(str);
 }