Close file in case of error

This commit is contained in:
Michael Vetter
2025-03-06 11:19:28 +01:00
parent 55a8a26a24
commit 43bbb16e8e

View File

@@ -122,6 +122,9 @@ aesgcm_file_get(void* userdata)
"temporary file at '%s' for reading (%s).",
aesgcm_dl->url, tmpname,
g_strerror(errno));
if (fclose(outfh) == EOF) {
cons_show_error(g_strerror(errno));
}
return NULL;
}