Fix missing fclose(), thanks to Kevin Day
authorColin Leroy <colin@colino.net>
Fri, 1 Aug 2014 15:15:26 +0000 (17:15 +0200)
committerColin Leroy <colin@colino.net>
Fri, 1 Aug 2014 15:15:26 +0000 (17:15 +0200)
src/plugins/pgpcore/sgpgme.c

index 6ba6d57..3de07e2 100644 (file)
@@ -401,6 +401,7 @@ gpgme_data_t sgpgme_data_from_mimeinfo(MimeInfo *mimeinfo)
                return NULL;
 
        err = gpgme_data_new_from_filepart(&data, NULL, fp, mimeinfo->offset, mimeinfo->length);
+       fclose(fp);
 
        debug_print("data %p (%d %d)\n", (void *)&data, mimeinfo->offset, mimeinfo->length);
        if (err) {