mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-03-03 07:33:50 +00:00
nwfilterxml2firewalltest: testCompareXMLToArgvFiles: Automatically free GHashTable
Signed-off-by: Peter Krempa <pkrempa@redhat.com> Reviewed-by: Ján Tomko <jtomko@redhat.com> Reviewed-by: Martin Kletzander <mkletzan@redhat.com>
This commit is contained in:
parent
ac5264ccd6
commit
dc38b4c5bf
@ -350,7 +350,7 @@ static int testCompareXMLToArgvFiles(const char *xml,
|
||||
{
|
||||
g_autofree char *actualargv = NULL;
|
||||
g_auto(virBuffer) buf = VIR_BUFFER_INITIALIZER;
|
||||
GHashTable *vars = virHashNew(virNWFilterVarValueHashFree);
|
||||
g_autoptr(GHashTable) vars = virHashNew(virNWFilterVarValueHashFree);
|
||||
virNWFilterInst inst;
|
||||
int ret = -1;
|
||||
g_autoptr(virCommandDryRunToken) dryRunToken = virCommandDryRunTokenNew();
|
||||
@ -381,7 +381,6 @@ static int testCompareXMLToArgvFiles(const char *xml,
|
||||
|
||||
cleanup:
|
||||
virNWFilterInstReset(&inst);
|
||||
virHashFree(vars);
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user