From: Daniel Stenberg Date: Thu, 13 Dec 2018 14:06:17 +0000 (+0100) Subject: gopher: fix memory leak from 9026083ddb2a9 X-Git-Tag: curl-7_64_0~120 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=4b4062aaebb8c945a4b29587229a98946c9edaa3;p=curl gopher: fix memory leak from 9026083ddb2a9 --- diff --git a/lib/gopher.c b/lib/gopher.c index 151bac1ad..485b4b79a 100644 --- a/lib/gopher.c +++ b/lib/gopher.c @@ -102,6 +102,7 @@ static CURLcode gopher_do(struct connectdata *conn, bool *done) if(strlen(gopherpath) <= 2) { sel = (char *)""; len = strlen(sel); + free(gopherpath); } else { char *newp;