summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2018-12-13 15:06:17 +0100
committerDaniel Stenberg <daniel@haxx.se>2018-12-13 15:06:17 +0100
commit4b4062aaebb8c945a4b29587229a98946c9edaa3 (patch)
tree3d7fa894bcdbbbd5b9227ed84c17084c2becd044
parent3997510eed6f986cef5898cf7d4485e7acfa3a14 (diff)
downloadcurl-4b4062aaebb8c945a4b29587229a98946c9edaa3.tar.gz
gopher: fix memory leak from 9026083ddb2a9
-rw-r--r--lib/gopher.c1
1 files changed, 1 insertions, 0 deletions
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;