]> granicus.if.org Git - curl/commitdiff
Revert "ftplistparser: keep state between invokes"
authorDaniel Stenberg <daniel@haxx.se>
Mon, 23 Apr 2018 05:50:01 +0000 (07:50 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Mon, 23 Apr 2018 05:51:11 +0000 (07:51 +0200)
This reverts commit 8fb78f9ddc6d858d630600059b8ad84a80892fd9.

Unfortunately this fix introduces memory leaks I've not been able to fix
in several days. Reverting this for now to get the leaks fixed.

lib/ftplistparser.c

index b376c81036e3ef135c3ee1777e56321e3d09f203..7668ea8c8cbe7ccb63a8dd27c7893b123e378267 100644 (file)
@@ -5,7 +5,7 @@
  *                            | (__| |_| |  _ <| |___
  *                             \___|\___/|_| \_\_____|
  *
- * Copyright (C) 1998 - 2018, Daniel Stenberg, <daniel@haxx.se>, et al.
+ * Copyright (C) 1998 - 2017, Daniel Stenberg, <daniel@haxx.se>, et al.
  *
  * This software is licensed as described in the file COPYING, which
  * you should have received as part of this distribution. The terms
@@ -1003,7 +1003,6 @@ size_t Curl_ftp_parselist(char *buffer, size_t size, size_t nmemb,
 
     i++;
   }
-  return retsize;
 
 fail: