summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSebastien Helleu <flashcode@flashtux.org>2012-12-25 16:57:14 +0100
committerSebastien Helleu <flashcode@flashtux.org>2012-12-25 16:57:14 +0100
commit9a024f3abadd4b5aacb4793d5edca7827661d468 (patch)
tree477069f4090de994cff2a6b1942f5b13cfcf19ae /src
parent67a111f7f2fbda37c464dff943c9e07d29fea1f2 (diff)
downloadweechat-9a024f3abadd4b5aacb4793d5edca7827661d468.zip
core: fix memory leak in case of error when building content of bar item for display
Diffstat (limited to 'src')
-rw-r--r--src/gui/gui-bar-window.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gui/gui-bar-window.c b/src/gui/gui-bar-window.c
index eecb34b34..1be0c8eda 100644
--- a/src/gui/gui-bar-window.c
+++ b/src/gui/gui-bar-window.c
@@ -852,6 +852,7 @@ gui_bar_window_content_get_with_filling (struct t_gui_bar_window *bar_window,
{
if (content)
free (content);
+ free (split_items);
return NULL;
}
content = content2;