[PATCH 1/4] test_driver: Don't leak @group_name

Erik Skultety eskultet at redhat.com
Tue Feb 1 16:19:03 UTC 2022


On Mon, Jan 31, 2022 at 03:53:39PM +0100, Michal Privoznik wrote:
> In testDomainSetBlockIoTune() the info.group_name is strdup()-ed
> and just after the whole @info structure is passed to
> virDomainDiskSetBlockIOTune() the @group_name member is set to
> NULL. This creates a memleak, because
> virDomainDiskSetBlockIOTune() creates its own copy of the string.
> 
> Signed-off-by: Michal Privoznik <mprivozn at redhat.com>
> ---
Reviewed-by: Erik Skultety <eskultet at redhat.com>




More information about the libvir-list mailing list