]> git.ipfire.org Git - thirdparty/libvirt.git/commit
networkxml2xmltest: Dynamically allocate testInfo struct
authorMichal Privoznik <mprivozn@redhat.com>
Wed, 17 Dec 2025 10:20:31 +0000 (11:20 +0100)
committerMichal Privoznik <mprivozn@redhat.com>
Thu, 29 Jan 2026 12:39:07 +0000 (13:39 +0100)
commit2d6a376ec0893209fbe200fc41f1689b75ae5c2c
tree608fe412f58a53931769050ba33a5a8ab656730d
parent5b2ed0d137600f4c331b9c49da964f246c723e1a
networkxml2xmltest: Dynamically allocate testInfo struct

So far, the testInfo struct contained immutable data (from its
lifetime point of view). But that is about to change. For
instance, it will hold parsed network definition (virNetworkDef)
and in order to avoid leaking dynamically allocated data
corresponding free function must be introduced (or clear
function, doesn't really matter). At this point, the structure
might as well be dynamically allocated entirely.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
tests/networkxml2xmltest.c