mirror of https://gitee.com/openkylin/libvirt.git
domain_conf: fix memory leak in virDomainDefAddConsoleCompat
Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
This commit is contained in:
parent
6e6b4bfcf2
commit
ccd5665fb1
|
@ -3895,7 +3895,7 @@ virDomainDefAddConsoleCompat(virDomainDefPtr def)
|
|||
0,
|
||||
def->nconsoles,
|
||||
chr) < 0) {
|
||||
VIR_FREE(chr);
|
||||
virDomainChrDefFree(chr);
|
||||
return -1;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue