summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--hscript/util.cc2
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;
}