Fix several memory leaks in RSSyl.
[claws.git] / src / plugins / rssyl / rssyl_deleted.c
index 6f3a06e9038fa2804fff3f19ef46d06930e7f6b7..ee2466be917fbcfdd79b20af34fa72d3d524be4e 100644 (file)
@@ -99,6 +99,7 @@ GSList *rssyl_deleted_update(RFolderItem *ritem)
 
        if (!g_file_test(deleted_file, G_FILE_TEST_EXISTS | G_FILE_TEST_IS_REGULAR)) {
                debug_print("RSSyl: '%s' doesn't exist, ignoring\n", deleted_file);
+               g_free(deleted_file);
                return NULL;
        }
 
@@ -203,6 +204,7 @@ void rssyl_deleted_store(RFolderItem *ritem)
 
        path = _deleted_file_path(ritem);
        rssyl_deleted_store_internal(ritem->deleted_items, path);
+       g_free(path);
 }