mirror of
https://github.com/ipxe/ipxe
synced 2026-02-14 02:31:26 +03:00
[settings] Correctly mortalise autovivified child settings blocks
Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
@@ -331,6 +331,7 @@ struct settings * autovivify_child_settings ( struct settings *parent,
|
|||||||
&new_child->autovivified.refcnt );
|
&new_child->autovivified.refcnt );
|
||||||
settings = &new_child->autovivified.generic.settings;
|
settings = &new_child->autovivified.generic.settings;
|
||||||
register_settings ( settings, parent, new_child->name );
|
register_settings ( settings, parent, new_child->name );
|
||||||
|
ref_put ( settings->refcnt );
|
||||||
return settings;
|
return settings;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user