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 5753a00..120037c 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;
 }