1
0
mirror of https://github.com/moparisthebest/curl synced 2024-12-23 16:48:49 -05:00

gopher: fix memory leak from 9026083ddb

This commit is contained in:
Daniel Stenberg 2018-12-13 15:06:17 +01:00
parent 3997510eed
commit 4b4062aaeb
No known key found for this signature in database
GPG Key ID: 5CC908FDB71E12C2

View File

@ -102,6 +102,7 @@ static CURLcode gopher_do(struct connectdata *conn, bool *done)
if(strlen(gopherpath) <= 2) { if(strlen(gopherpath) <= 2) {
sel = (char *)""; sel = (char *)"";
len = strlen(sel); len = strlen(sel);
free(gopherpath);
} }
else { else {
char *newp; char *newp;