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:
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
Block a user