From: Michael Brown Date: Mon, 18 Jul 2016 22:52:40 +0000 (+0100) Subject: [settings] Correctly mortalise autovivified child settings blocks X-Git-Tag: v1.20.1~387 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0ac874242bfe6d623a9fcff13852fa995a379b8d;p=thirdparty%2Fipxe.git [settings] Correctly mortalise autovivified child settings blocks Signed-off-by: Michael Brown --- 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; }