mirror of
https://github.com/moparisthebest/curl
synced 2024-12-24 09:08: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) {
|
if(strlen(gopherpath) <= 2) {
|
||||||
sel = (char *)"";
|
sel = (char *)"";
|
||||||
len = strlen(sel);
|
len = strlen(sel);
|
||||||
|
free(gopherpath);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
char *newp;
|
char *newp;
|
||||||
|
Loading…
Reference in New Issue
Block a user