Bläddra i källkod

[settings] Correctly mortalise autovivified child settings blocks

Signed-off-by: Michael Brown <mcb30@ipxe.org>
tags/v1.20.1
Michael Brown 9 år sedan
förälder
incheckning
0ac874242b
1 ändrade filer med 1 tillägg och 0 borttagningar
  1. 1
    0
      src/core/settings.c

+ 1
- 0
src/core/settings.c Visa fil

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

Laddar…
Avbryt
Spara