From: Richard Russon Date: Thu, 16 Feb 2017 12:25:29 +0000 (+0000) Subject: fix: resource leak - CID 76976 X-Git-Tag: neomutt-20170225~14^2~13 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d9de912073ec219638f002d89e31dd6d3c5af34d;p=neomutt fix: resource leak - CID 76976 --- diff --git a/attach.c b/attach.c index ab8919bc2..9cb2f937b 100644 --- a/attach.c +++ b/attach.c @@ -47,13 +47,13 @@ int mutt_get_tmp_attachment (BODY *a) { char type[STRING]; char tempfile[_POSIX_PATH_MAX]; - rfc1524_entry *entry = rfc1524_new_entry(); FILE *fpin = NULL, *fpout = NULL; struct stat st; if(a->unlink) return 0; + rfc1524_entry *entry = rfc1524_new_entry(); snprintf(type, sizeof(type), "%s/%s", TYPE(a), a->subtype); rfc1524_mailcap_lookup(a, type, entry, 0); rfc1524_expand_filename(entry->nametemplate, a->filename,