summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Rajnoha <prajnoha@redhat.com>2016-09-16 09:34:46 +0200
committerPeter Rajnoha <prajnoha@redhat.com>2016-09-16 10:27:35 +0200
commiteb3dbc94dd8b7bda7db931f2f727bf831a446f4f (patch)
tree9250f90e517bbebb5a7b8cb3b7274ef7cfa13822
parente00d7846363c022bf81d35950c7fd612b2ed1c99 (diff)
downloadlvm2-dev-prajnoha-config-tree.tar.gz
libdm: config: use cft mem pool, not parser mem pool when creating cft tree nodes during parsingdev-prajnoha-config-tree
Config tree as well as its config tree nodes should be allocated from same pool...
-rw-r--r--libdm/libdm-config.c2
1 files changed, 1 insertions, 1 deletions
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) {