mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-02-01 17:35:17 +00:00
nwfilterxml2firewalltest: virNWFilterIncludeDefToRuleInst: 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
b326b4eeaa
commit
ac5264ccd6
@ -227,7 +227,7 @@ virNWFilterIncludeDefToRuleInst(virNWFilterIncludeDef *inc,
|
||||
GHashTable *vars,
|
||||
virNWFilterInst *inst)
|
||||
{
|
||||
GHashTable *tmpvars = NULL;
|
||||
g_autoptr(GHashTable) tmpvars = NULL;
|
||||
int ret = -1;
|
||||
g_autofree char *xml = NULL;
|
||||
|
||||
@ -248,7 +248,6 @@ virNWFilterIncludeDefToRuleInst(virNWFilterIncludeDef *inc,
|
||||
cleanup:
|
||||
if (ret < 0)
|
||||
virNWFilterInstReset(inst);
|
||||
virHashFree(tmpvars);
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user