mirror of https://github.com/moparisthebest/curl
gopher: fix memory leak from 9026083ddb
This commit is contained in:
parent
3997510eed
commit
4b4062aaeb
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue