* src/procmime.c
authorChristoph Hohmann <reboot@gmx.ch>
Tue, 15 Oct 2002 22:44:29 +0000 (22:44 +0000)
committerChristoph Hohmann <reboot@gmx.ch>
Tue, 15 Oct 2002 22:44:29 +0000 (22:44 +0000)
        set mimeinfo->name to NULL after g_free to
        avoid double freeing with g_free

ChangeLog.claws
configure.in
src/procmime.c

index bb3f58e4b2f22073a4fa97f16f5e426e34b142ad..e9b8287a5f4788415a9bd8fa16997b39b72d45f5 100644 (file)
@@ -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
 2002-10-14 [christoph] 0.8.5claws37
 
        * src/compose.c
index 8551aca33626456f9ae7d9587e10a09c84cb3b43..71bbf906823dbf5eea42a42a3daaa712d2816406 100644 (file)
@@ -11,7 +11,7 @@ MINOR_VERSION=8
 MICRO_VERSION=5
 INTERFACE_AGE=0
 BINARY_AGE=0
 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
 VERSION=$MAJOR_VERSION.$MINOR_VERSION.$MICRO_VERSION$EXTRA_VERSION
 
 dnl set $target
index ad7011faff14ed7bc6133fd56dcad9b4a919ffb9..7b82cf316b004dba446f79d17e047133177a8886 100644 (file)
@@ -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);
        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"))
        /*pgp signatures should NOT have a name */
        if (mimeinfo->content_type 
        &&  strcasecmp(mimeinfo->content_type, "application/pgp-signature"))