aboutsummaryrefslogtreecommitdiff
path: root/lib/ftp.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/ftp.c')
-rw-r--r--lib/ftp.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/ftp.c b/lib/ftp.c
index 25d1f958c..0da33fbbc 100644
--- a/lib/ftp.c
+++ b/lib/ftp.c
@@ -2234,6 +2234,8 @@ CURLcode Curl_ftp(struct connectdata *conn)
/* since we didn't connect now, we want do_more to get called */
conn->bits.do_more = TRUE;
}
+ else
+ freedirs(ftp);
return retcode;
}