From 1f241c6c969f6245eadcdc4064f4ba92d7107b0d Mon Sep 17 00:00:00 2001 From: "A. Wilcox" Date: Tue, 26 May 2020 23:18:29 -0500 Subject: hscript: Close file after download --- hscript/util.cc | 2 ++ 1 file changed, 2 insertions(+) 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; } -- cgit v1.2.3-60-g2f50