Re: [PATCH 3/5] virfirewalltest: Don't duplicate string when adding it onto stringlist

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, Oct 02, 2020 at 11:22:08AM +0200, Michal Privoznik wrote:
> In our wrapper of g_dbus_connection_call_sync() in
> virfirewalltest a string is duplicated and added onto a
> virStringList. This leads to a memory leak because
> virStringListAdd() duplicates the string itself.
> 
> Signed-off-by: Michal Privoznik <mprivozn@xxxxxxxxxx>
> ---
>  tests/virfirewalltest.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)

Reviewed-by: Pavel Hrdina <phrdina@xxxxxxxxxx>

Attachment: signature.asc
Description: PGP signature


[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]

  Powered by Linux