RSSyl: Fix memory leak caused by last commit.
authorAndrej Kacian <ticho@claws-mail.org>
Thu, 23 Oct 2014 16:38:56 +0000 (18:38 +0200)
committerAndrej Kacian <ticho@claws-mail.org>
Thu, 23 Oct 2014 16:38:56 +0000 (18:38 +0200)
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;
 }