]> granicus.if.org Git - curl/commitdiff
Jon Turner mentioned this bug fix to correct how libcurl deals with paths
authorDaniel Stenberg <daniel@haxx.se>
Sat, 4 Oct 2003 15:25:02 +0000 (15:25 +0000)
committerDaniel Stenberg <daniel@haxx.se>
Sat, 4 Oct 2003 15:25:02 +0000 (15:25 +0000)
after a failed transfer.

lib/ftp.c

index 25d1f958c4d84bcd5dcbe6c1ed8343a73783a060..0da33fbbc1c760200e5f31322a86ef5212f3905c 100644 (file)
--- 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;
 }