mirror of
https://github.com/moparisthebest/curl
synced 2025-02-28 17:31:46 -05:00
ftp: removed an erroneous free in an OOM path
This commit is contained in:
parent
ce9ba3ba10
commit
79221d8d50
@ -4283,7 +4283,6 @@ CURLcode ftp_parse_url_path(struct connectdata *conn)
|
|||||||
&ftpc->dirs[ftpc->dirdepth], NULL,
|
&ftpc->dirs[ftpc->dirdepth], NULL,
|
||||||
TRUE);
|
TRUE);
|
||||||
if(result) {
|
if(result) {
|
||||||
free(ftpc->dirs[ftpc->dirdepth]);
|
|
||||||
freedirs(ftpc);
|
freedirs(ftpc);
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user