From eb3dbc94dd8b7bda7db931f2f727bf831a446f4f Mon Sep 17 00:00:00 2001 From: Peter Rajnoha Date: Fri, 16 Sep 2016 09:34:46 +0200 Subject: libdm: config: use cft mem pool, not parser mem pool when creating cft tree nodes during parsing Config tree as well as its config tree nodes should be allocated from same pool... --- libdm/libdm-config.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libdm/libdm-config.c b/libdm/libdm-config.c index 372e89478..100c641fa 100644 --- a/libdm/libdm-config.c +++ b/libdm/libdm-config.c @@ -616,7 +616,7 @@ static struct dm_config_node *_section(struct config_wrapper *cf_wrapper, return NULL; } - if (!(root = _find_or_make_node(p->mem, cf_wrapper, parent, str))) + if (!(root = _find_or_make_node(cf_wrapper->cft.mem, cf_wrapper, parent, str))) return_NULL; if (p->t == TOK_SECTION_B) { -- cgit v1.2.1