aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2003-10-04 15:25:02 +0000
committerDaniel Stenberg <daniel@haxx.se>2003-10-04 15:25:02 +0000
commit45ef092cc265dacf080a9ae6d24fa0886f4eaea8 (patch)
tree3897c8459f33d417e5ee1f8a1710863718371a90
parenta191fe028ce9e4de15ed478ad010919cad8aeb8f (diff)
Jon Turner mentioned this bug fix to correct how libcurl deals with paths
after a failed transfer.
-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;
}