fix a crash freeing attachment buffer
authorParthasarathi Susarla <sparthasarathi@novell.com>
Mon, 25 Jul 2005 10:16:05 +0000 (10:16 +0000)
committerParthasarathi Susarla <saps@src.gnome.org>
Mon, 25 Jul 2005 10:16:05 +0000 (10:16 +0000)
2005-07-25  Parthasarathi Susarla <sparthasarathi@novell.com>

* camel-groupwise-folder.c: (groupwise_folder_item_to_msg)
fix a crash freeing attachment buffer

camel/providers/groupwise/ChangeLog
camel/providers/groupwise/camel-groupwise-folder.c

index db7e2bc..923aa54 100644 (file)
@@ -1,3 +1,8 @@
+2005-07-25  Parthasarathi Susarla <sparthasarathi@novell.com>
+       
+       * camel-groupwise-folder.c: (groupwise_folder_item_to_msg)
+       fix a crash freeing attachment buffer
+
 2005-07-24  Parthasarathi Susarla <sparthasarathi@novell.com>
        
        * camel-groupwise-provider.c:
index ae2d3a6..9612087 100644 (file)
@@ -1231,8 +1231,8 @@ groupwise_folder_item_to_msg( CamelFolder *folder,
                                        camel_multipart_add_part (multipart, part);
 
                                        camel_object_unref (part);
+                                       g_free (attachment);
                                }
-                               g_free (attachment);
                        }
                }