We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
FILE*
1 parent 4405f33 commit 6d3f20fCopy full SHA for 6d3f20f
src/tools/aesgcm_download.c
@@ -119,7 +119,7 @@ aesgcm_file_get(void* userdata)
119
ssize_t bytes_received = *p_bytes_received;
120
free(p_bytes_received);
121
122
- auto_FILE FILE* tmpfh = fopen(tmpname, "rb");
+ FILE* tmpfh = fopen(tmpname, "rb");
123
if (tmpfh == NULL) {
124
http_print_transfer_update(aesgcm_dl->window, aesgcm_dl->id,
125
"Downloading '%s' failed: Unable to open "
@@ -132,7 +132,7 @@ aesgcm_file_get(void* userdata)
132
gcry_error_t crypt_res;
133
crypt_res = omemo_decrypt_file(tmpfh, outfh,
134
bytes_received, fragment);
135
-
+ fclose(tmpfh);
136
remove(tmpname);
137
138
if (crypt_res != GPG_ERR_NO_ERROR) {
0 commit comments