]> git.ipfire.org Git - thirdparty/libvirt.git/commit
virfirewalltest: Don't duplicate string when adding it onto stringlist
authorMichal Privoznik <mprivozn@redhat.com>
Fri, 2 Oct 2020 08:37:26 +0000 (10:37 +0200)
committerMichal Privoznik <mprivozn@redhat.com>
Fri, 2 Oct 2020 10:48:55 +0000 (12:48 +0200)
commit053beeb04de2d238c115b3bd4cc8f4ccc3d83d43
tree144d26b65735891d6ab6743eef3b205f444537a7
parent2c4ebab4f50bc57e617076a8fbd8308f0c8fb087
virfirewalltest: Don't duplicate string when adding it onto stringlist

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@redhat.com>
Reviewed-by: Pavel Hrdina <phrdina@redhat.com>
tests/virfirewalltest.c