소스 검색

[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
 

Loading…
취소
저장