mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-09-08 16:54:49 +00:00
conf: Fix memory leak caused by missing VIR_FREE for video resolution.
Commit 72862797
introduced resolution settings for QEMU video drivers.
It includes a new structure inside video definition. So, the code needs
to clear pointer allocation for that structure into clear function
virDomainVideoDefClear(). This commit adds this missing VIR_FREE().
Reviewed-by: Jonathon Jongsma <jjongsma@redhat.com>
Signed-off-by: Julio Faracco <jcfaracco@gmail.com>
This commit is contained in:
parent
fa061c92ec
commit
52d805117a
@ -2826,6 +2826,7 @@ virDomainVideoDefClear(virDomainVideoDefPtr def)
|
||||
if (def->accel)
|
||||
VIR_FREE(def->accel->rendernode);
|
||||
VIR_FREE(def->accel);
|
||||
VIR_FREE(def->res);
|
||||
VIR_FREE(def->virtio);
|
||||
if (def->driver)
|
||||
VIR_FREE(def->driver->vhost_user_binary);
|
||||
|
Loading…
Reference in New Issue
Block a user