1
0
mirror of https://gitlab.com/libvirt/libvirt.git synced 2025-04-01 20:05:19 +00:00

domain_conf: fix memory leak in virDomainDefAddConsoleCompat

Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
This commit is contained in:
Pavel Hrdina 2016-10-21 21:20:37 +02:00
parent 6e6b4bfcf2
commit ccd5665fb1

View File

@ -3895,7 +3895,7 @@ virDomainDefAddConsoleCompat(virDomainDefPtr def)
0,
def->nconsoles,
chr) < 0) {
VIR_FREE(chr);
virDomainChrDefFree(chr);
return -1;
}