mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-08-28 19:41:16 +00:00
virNWFilterDoInstantiate: Automatically free temporary 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
04bbaa2b1f
commit
bdcd102eef
@ -493,8 +493,7 @@ virNWFilterDoInstantiate(virNWFilterTechDriver *techdriver,
|
|||||||
virNWFilterVarValue *lv;
|
virNWFilterVarValue *lv;
|
||||||
const char *learning;
|
const char *learning;
|
||||||
bool reportIP = false;
|
bool reportIP = false;
|
||||||
|
g_autoptr(GHashTable) missing_vars = virHashNew(virNWFilterVarValueHashFree);
|
||||||
GHashTable *missing_vars = virHashNew(virNWFilterVarValueHashFree);
|
|
||||||
|
|
||||||
memset(&inst, 0, sizeof(inst));
|
memset(&inst, 0, sizeof(inst));
|
||||||
|
|
||||||
@ -593,7 +592,6 @@ virNWFilterDoInstantiate(virNWFilterTechDriver *techdriver,
|
|||||||
|
|
||||||
error:
|
error:
|
||||||
virNWFilterInstReset(&inst);
|
virNWFilterInstReset(&inst);
|
||||||
virHashFree(missing_vars);
|
|
||||||
|
|
||||||
return rc;
|
return rc;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user