summaryrefslogtreecommitdiff
path: root/lib/fileinfo.c
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2018-04-24 08:19:54 +0200
committerDaniel Stenberg <daniel@haxx.se>2018-04-24 08:19:54 +0200
commit5c39ccd83f051de3fc803584c1405b4fb5f9f899 (patch)
treed2678bd637914e34a3eef4c8961ded360ac55c68 /lib/fileinfo.c
parenta7df35ce2130a99f26c4c8315ce46bf10804280e (diff)
downloadcurl-5c39ccd83f051de3fc803584c1405b4fb5f9f899.tar.gz
Revert "ftplistparser: keep state between invokes"
This reverts commit abbc8457d85aca74b7cfda1d394b0844932b2934. Caused fuzzer problems on travis not seen when this was a PR!
Diffstat (limited to 'lib/fileinfo.c')
-rw-r--r--lib/fileinfo.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/lib/fileinfo.c b/lib/fileinfo.c
index 4e72e1eba..387298847 100644
--- a/lib/fileinfo.c
+++ b/lib/fileinfo.c
@@ -5,7 +5,7 @@
* | (__| |_| | _ <| |___
* \___|\___/|_| \_\_____|
*
- * Copyright (C) 2010 - 2018, Daniel Stenberg, <daniel@haxx.se>, et al.
+ * Copyright (C) 2010 - 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
@@ -33,11 +33,14 @@ struct fileinfo *Curl_fileinfo_alloc(void)
return calloc(1, sizeof(struct fileinfo));
}
-void Curl_fileinfo_cleanup(struct fileinfo *finfo)
+void Curl_fileinfo_dtor(void *user, void *element)
{
+ struct fileinfo *finfo = element;
+ (void) user;
if(!finfo)
return;
Curl_safefree(finfo->info.b_data);
+
free(finfo);
}