talons

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

commit 8101fa7f5c1e01f3d7b9e2aa6873cf490f610a7b
parent 984d5ed3aca6d87c6e42196ae8ed71b936f6e980
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 ) {