2008-07-29 [colin] 3.5.0cvs37
[claws.git] / src / news.c
index 7d1a87fd2c31db469740f59960ab0792c595ab35..b9947a028e2a2d58e6531976113ecc96ba0068d2 100644 (file)
@@ -712,9 +712,9 @@ 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);
        }
        
-       g_free(result);
        return r;
 }