aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDan Fandrich <dan@coneharvesters.com>2017-02-25 21:47:27 +0100
committerDan Fandrich <dan@coneharvesters.com>2017-02-25 21:47:27 +0100
commit79221d8d5020933bec22af3bb6f19a1bfdf0f188 (patch)
treef7a96fbf6e5ec80dbebd6979888d223ebd5a3ecc /lib
parentce9ba3ba1057725fe5f485de01294182841c2132 (diff)
ftp: removed an erroneous free in an OOM path
Diffstat (limited to 'lib')
-rw-r--r--lib/ftp.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/lib/ftp.c b/lib/ftp.c
index aa4d5ac2d..4d5d07a11 100644
--- a/lib/ftp.c
+++ b/lib/ftp.c
@@ -4283,7 +4283,6 @@ CURLcode ftp_parse_url_path(struct connectdata *conn)
&ftpc->dirs[ftpc->dirdepth], NULL,
TRUE);
if(result) {
- free(ftpc->dirs[ftpc->dirdepth]);
freedirs(ftpc);
return result;
}