mirror of https://gitee.com/openkylin/libvirt.git
conf: Avoid leaking of RNG device definition
This commit is contained in:
parent
19c6ad9ac7
commit
34f1a618a5
src/conf
|
@ -1775,6 +1775,8 @@ void virDomainDefFree(virDomainDefPtr def)
|
|||
virDomainRedirdevDefFree(def->redirdevs[i]);
|
||||
VIR_FREE(def->redirdevs);
|
||||
|
||||
virDomainRNGDefFree(def->rng);
|
||||
|
||||
VIR_FREE(def->os.type);
|
||||
VIR_FREE(def->os.machine);
|
||||
VIR_FREE(def->os.init);
|
||||
|
|
Loading…
Reference in New Issue