mirror of
https://git.jabber.space/devs/cproof.git
synced 2026-07-27 17:36:21 +00:00
Close file in case of error
This commit is contained in:
@@ -122,6 +122,9 @@ aesgcm_file_get(void* userdata)
|
|||||||
"temporary file at '%s' for reading (%s).",
|
"temporary file at '%s' for reading (%s).",
|
||||||
aesgcm_dl->url, tmpname,
|
aesgcm_dl->url, tmpname,
|
||||||
g_strerror(errno));
|
g_strerror(errno));
|
||||||
|
if (fclose(outfh) == EOF) {
|
||||||
|
cons_show_error(g_strerror(errno));
|
||||||
|
}
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user