
24 Nov
2020
24 Nov
'20
5:57 a.m.
On a Tuesday in 2020, Tuguoyi wrote:
cfg->firmwares still points to the original memory address after being freed by virFirmwareFreeList(). As cfg get freed, it will be freed again even if cfg->nfirmwares=0 which eventually lead to crash.
The patch fix it by setting cfg->firmwares to NULL explicitly after virFirmwareFreeList() returns
Signed-off-by: Tuguoyi <tu.guoyi@h3c.com>
Should there be a space separating your name(s)?
--- src/qemu/qemu_conf.c | 1 + 1 file changed, 1 insertion(+)
Reviewed-by: Ján Tomko <jtomko@redhat.com> Jano