diff options
Diffstat (limited to 'hscript/util.cc')
-rw-r--r-- | hscript/util.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/hscript/util.cc b/hscript/util.cc index 8317995..7a0f186 100644 --- a/hscript/util.cc +++ b/hscript/util.cc @@ -57,6 +57,8 @@ bool download_file(const std::string &url, const std::string &path) { } else { output_error("curl", "couldn't download file", errbuf); } + + fclose(fp); curl_easy_cleanup(curl); return return_code; } |