diff --git a/ftpfs-ls.c b/ftpfs-ls.c index 0618adf..5c9175b 100644 --- a/ftpfs-ls.c +++ b/ftpfs-ls.c @@ -229,6 +229,8 @@ int parse_dir(const char* list, const char* dir, if (sbuf) *sbuf = stat_buf; found = 1; } + + free(full_path); } free(line); diff --git a/ftpfs.c b/ftpfs.c index ef3f90e..daf0c73 100644 --- a/ftpfs.c +++ b/ftpfs.c @@ -533,6 +533,7 @@ static int ftpfs_open(const char* path, struct fuse_file_info* fi) { } } + free(full_path); return err; } @@ -1172,7 +1173,9 @@ int main(int argc, char** argv) { res = fuse_main(args.argc, args.argv, cache_init(&ftpfs_oper)); + curl_multi_remove_handle(ftpfs.multi, easy); curl_easy_cleanup(easy); + curl_multi_cleanup(ftpfs.multi); curl_global_cleanup(); return res;