projects
/
claws.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
984d5ed
)
Fix a memory leak in rssyl_rename_folder()
author
Andrej Kacian
<ticho@claws-mail.org>
Tue, 23 Apr 2019 21:46:43 +0000
(23:46 +0200)
committer
Andrej Kacian
<ticho@claws-mail.org>
Tue, 23 Apr 2019 21:46:43 +0000
(23:46 +0200)
src/plugins/rssyl/rssyl.c
patch
|
blob
|
history
diff --git
a/src/plugins/rssyl/rssyl.c
b/src/plugins/rssyl/rssyl.c
index fdd18163dae0cf98ffbd7ad2fdccf32d0fddd9c5..410b5369a44e7cd354d167e073c1226b5c529817 100644
(file)
--- 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 ) {