From 0ac874242bfe6d623a9fcff13852fa995a379b8d Mon Sep 17 00:00:00 2001 From: Michael Brown Date: Mon, 18 Jul 2016 23:52:40 +0100 Subject: [PATCH] [settings] Correctly mortalise autovivified child settings blocks Signed-off-by: Michael Brown --- src/core/settings.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/core/settings.c b/src/core/settings.c index 1361a10ed..42bb5e53f 100644 --- a/src/core/settings.c +++ b/src/core/settings.c @@ -331,6 +331,7 @@ struct settings * autovivify_child_settings ( struct settings *parent, &new_child->autovivified.refcnt ); settings = &new_child->autovivified.generic.settings; register_settings ( settings, parent, new_child->name ); + ref_put ( settings->refcnt ); return settings; }