* 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 bb3f58e..e9b8287 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
index 8551aca..71bbf90 100644 (file)
@@ -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
index ad7011f..7b82cf3 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);
+       mimeinfo->name = NULL;
        /*pgp signatures should NOT have a name */
        if (mimeinfo->content_type 
        &&  strcasecmp(mimeinfo->content_type, "application/pgp-signature"))