Fix bug #1684 'view news messages with large attachements segfaults'
authorRicardo Mones <ricardo@mones.org>
Thu, 2 May 2013 07:28:15 +0000 (09:28 +0200)
committerRicardo Mones <ricardo@mones.org>
Thu, 2 May 2013 07:28:15 +0000 (09:28 +0200)
Don't g_free MMAPString str data which we didn't allocate

src/news.c

index 72083f63b9408e74b957a227d606abc024cdfc5a..1102b4bcf454911cfda48b9909fc840e189dbb50 100644 (file)
@@ -801,7 +801,6 @@ static gint news_get_article(Folder *folder, gint num, gchar *filename)
        if (r == NEWSNNTP_NO_ERROR) {
                if (str_write_to_file(result, filename) < 0)
                        return -1;
-               g_free(result);
        }
        
        return r;