summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2018-04-23 07:50:01 +0200
committerDaniel Stenberg <daniel@haxx.se>2018-04-23 07:51:11 +0200
commit10b195d3b06e2251a3a962363cf46d6af53258ce (patch)
treeae1018aa56e419ef154fc000e2ba1e94fe721656
parent0f72716676cd7f95ba7f879594da5b8b1c58e561 (diff)
downloadcurl-10b195d3b06e2251a3a962363cf46d6af53258ce.tar.gz
Revert "ftplistparser: keep state between invokes"
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.
-rw-r--r--lib/ftplistparser.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/ftplistparser.c b/lib/ftplistparser.c
index b376c8103..7668ea8c8 100644
--- a/lib/ftplistparser.c
+++ b/lib/ftplistparser.c
@@ -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: