From: Christoph Hohmann Date: Tue, 15 Oct 2002 22:44:29 +0000 (+0000) Subject: * src/procmime.c X-Git-Tag: w0-1~124 X-Git-Url: http://git.claws-mail.org/?p=claws.git;a=commitdiff_plain;h=b34c712165475785753b0d5c2c66166b5c1d7d19;ds=sidebyside * src/procmime.c set mimeinfo->name to NULL after g_free to avoid double freeing with g_free --- diff --git a/ChangeLog.claws b/ChangeLog.claws index bb3f58e4b..e9b8287a5 100644 --- a/ChangeLog.claws +++ b/ChangeLog.claws @@ -1,3 +1,9 @@ +2002-10-15 [christoph] 0.8.5claws38 + + * src/procmime.c + set mimeinfo->name to NULL after g_free to + avoid double freeing with g_free + 2002-10-14 [christoph] 0.8.5claws37 * src/compose.c diff --git a/configure.in b/configure.in index 8551aca33..71bbf9068 100644 --- a/configure.in +++ b/configure.in @@ -11,7 +11,7 @@ MINOR_VERSION=8 MICRO_VERSION=5 INTERFACE_AGE=0 BINARY_AGE=0 -EXTRA_VERSION=claws37 +EXTRA_VERSION=claws38 VERSION=$MAJOR_VERSION.$MINOR_VERSION.$MICRO_VERSION$EXTRA_VERSION dnl set $target diff --git a/src/procmime.c b/src/procmime.c index ad7011faf..7b82cf316 100644 --- a/src/procmime.c +++ b/src/procmime.c @@ -504,6 +504,7 @@ void procmime_scan_content_description(MimeInfo *mimeinfo, Xalloca(tmp, blen, return); conv_unmime_header(tmp, blen, buf, NULL); g_free(mimeinfo->name); + mimeinfo->name = NULL; /*pgp signatures should NOT have a name */ if (mimeinfo->content_type && strcasecmp(mimeinfo->content_type, "application/pgp-signature"))