2008-07-29 [colin] 3.5.0cvs37
[claws.git] / src / news.c
index 7d1a87f..b9947a0 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;
 }