summaryrefslogtreecommitdiffstats
path: root/src/core
diff options
context:
space:
mode:
authorMichael Brown2016-07-19 00:52:40 +0200
committerMichael Brown2016-07-19 01:13:00 +0200
commit0ac874242bfe6d623a9fcff13852fa995a379b8d (patch)
tree46bd7f6ced6022ec9ebcb8e3bf35bad5b209de9b /src/core
parent[ipv6] Rename ipv6_scope to dhcpv6_scope (diff)
downloadipxe-0ac874242bfe6d623a9fcff13852fa995a379b8d.tar.gz
ipxe-0ac874242bfe6d623a9fcff13852fa995a379b8d.tar.xz
ipxe-0ac874242bfe6d623a9fcff13852fa995a379b8d.zip
[settings] Correctly mortalise autovivified child settings blocks
Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/core')
-rw-r--r--src/core/settings.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/core/settings.c b/src/core/settings.c
index 1361a10e..42bb5e53 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;
}