talons

Fork of Claws Mail https://www.claws-mail
Log | Files | Refs | README | LICENSE

commit 4a51eec45e2a45ff531874cd8972f2786cba8e23
parent bfc55f7a4e6fe27aa9fa3086dc5930bad52943bb
Author: Andrej Kacian <ticho@claws-mail.org>
Date:   Tue, 23 Apr 2019 23:46:43 +0200

Fix a memory leak in rssyl_rename_folder()

Diffstat:
Msrc/plugins/rssyl/rssyl.c | 1+
1 file changed, 1 insertion(+), 0 deletions(-)

diff --git a/src/plugins/rssyl/rssyl.c b/src/plugins/rssyl/rssyl.c @@ -591,6 +591,7 @@ static gint rssyl_rename_folder(Folder *folder, FolderItem *item, dirname = g_path_get_dirname(oldpath); basenewpath = g_strdelimit(g_strdup(name), G_DIR_SEPARATOR_S, '_'); newpath = g_strconcat(dirname, G_DIR_SEPARATOR_S, basenewpath, NULL); + g_free(dirname); g_free(basenewpath); if( g_rename(oldpath, newpath) < 0 ) {