From 45ef092cc265dacf080a9ae6d24fa0886f4eaea8 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Sat, 4 Oct 2003 15:25:02 +0000 Subject: [PATCH] Jon Turner mentioned this bug fix to correct how libcurl deals with paths after a failed transfer. --- lib/ftp.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/ftp.c b/lib/ftp.c index 25d1f95..0da33fb 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; } -- 2.7.4