浏览代码

[settings] Correctly mortalise autovivified child settings blocks

Signed-off-by: Michael Brown <mcb30@ipxe.org>
tags/v1.20.1
Michael Brown 9 年前
父节点
当前提交
0ac874242b
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1
    0
      src/core/settings.c

+ 1
- 0
src/core/settings.c 查看文件

@@ -331,6 +331,7 @@ struct settings * autovivify_child_settings ( struct settings *parent,
331 331
 				&new_child->autovivified.refcnt );
332 332
 	settings = &new_child->autovivified.generic.settings;
333 333
 	register_settings ( settings, parent, new_child->name );
334
+	ref_put ( settings->refcnt );
334 335
 	return settings;
335 336
 }
336 337
 

正在加载...
取消
保存