RSSyl: Fix memory leak caused by last commit.
[claws.git] / src / plugins / rssyl / rssyl.c
index 5753a0029114dd69bdd1aa5923ea13f7ac149c08..120037cd730a1f0aa6155c7fd55b302ec4a9ee85 100644 (file)
@@ -664,9 +664,12 @@ static gboolean rssyl_is_msg_changed(Folder *folder, FolderItem *item,
                msginfo->size != s.st_size || (
                                (msginfo->mtime - s.st_mtime != 0) &&
                                (msginfo->mtime - s.st_mtime != 3600) &&
-                               (msginfo->mtime - s.st_mtime != -3600)))
+                               (msginfo->mtime - s.st_mtime != -3600))) {
+               g_free(path);
                return TRUE;
+       }
 
+       g_free(path);
        return FALSE;
 }