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
1 changed files with 1 additions and 0 deletions

View File

@ -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;