Fix memory leaks.

This commit is contained in:
braga
2006-05-15 02:40:52 +00:00
parent 15409cbfb9
commit 0accac7007
2 changed files with 5 additions and 0 deletions

View File

@@ -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);

View File

@@ -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;