mirror of
https://github.com/opnsense/src.git
synced 2026-06-09 08:43:19 -04:00
Fix memory leak when export hook is not connected.
This commit is contained in:
parent
f704a24b20
commit
cfcb2a4c82
1 changed files with 2 additions and 0 deletions
|
|
@ -617,6 +617,8 @@ export_send(priv_p priv, item_p item, int flags)
|
|||
|
||||
if (priv->export != NULL)
|
||||
NG_FWD_ITEM_HOOK_FLAGS(error, item, priv->export, flags);
|
||||
else
|
||||
NG_FREE_ITEM(item);
|
||||
|
||||
return (error);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue