-
- Downloads
qemu_conf: Fix double free problem for cfg->firmwares
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:Guoyi <Tu<tu.guoyi@h3c.com> Reviewed-by:
Ján Tomko <jtomko@redhat.com>