Browse Source

[settings] Correctly mortalise autovivified child settings blocks

Signed-off-by: Michael Brown <mcb30@ipxe.org>
tags/v1.20.1
Michael Brown 8 years ago
parent
commit
0ac874242b
1 changed files with 1 additions and 0 deletions
  1. 1
    0
      src/core/settings.c

+ 1
- 0
src/core/settings.c View File

@@ -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
 

Loading…
Cancel
Save