diff options
author | Timo Sirainen <cras@irssi.org> | 2000-08-16 00:48:51 +0000 |
---|---|---|
committer | cras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564> | 2000-08-16 00:48:51 +0000 |
commit | 8dab451d18a7b866a927eec880bdc0f92af3deaf (patch) | |
tree | ef554bf823125c41a35a9f973faac320654c77b6 /src/lib-config | |
parent | 2e3a056110d37afab8324bb5f272601c4b986054 (diff) | |
download | irssi-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.c | 5 |
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); |