summaryrefslogtreecommitdiff
path: root/src/lib-config
diff options
context:
space:
mode:
authorTimo Sirainen <cras@irssi.org>2000-08-16 00:48:51 +0000
committercras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564>2000-08-16 00:48:51 +0000
commit8dab451d18a7b866a927eec880bdc0f92af3deaf (patch)
treeef554bf823125c41a35a9f973faac320654c77b6 /src/lib-config
parent2e3a056110d37afab8324bb5f272601c4b986054 (diff)
downloadirssi-8dab451d18a7b866a927eec880bdc0f92af3deaf.zip
Small memleak fixed
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@613 dbcabf3a-b0e7-0310-adc4-f8d773084564
Diffstat (limited to 'src/lib-config')
-rw-r--r--src/lib-config/get.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/lib-config/get.c b/src/lib-config/get.c
index 0a41272b..c4cde5b8 100644
--- a/src/lib-config/get.c
+++ b/src/lib-config/get.c
@@ -91,7 +91,10 @@ CONFIG_NODE *config_node_traverse(CONFIG_REC *rec, const char *section, int crea
if (create) new_type = is_list ? NODE_TYPE_LIST : NODE_TYPE_BLOCK;
node = config_node_section(node, *tmp + is_list, new_type);
- if (node == NULL) return NULL;
+ if (node == NULL) {
+ g_strfreev(list);
+ return NULL;
+ }
}
g_strfreev(list);