mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
Plug item leak in case when not all hooks are connected.
Found by: David Vos <david.vos gmail.com>
This commit is contained in:
parent
3b37814794
commit
3ff2ed9e6d
1 changed files with 3 additions and 0 deletions
|
|
@ -142,6 +142,9 @@ ng_split_rcvdata(hook_p hook, item_p item)
|
|||
NG_FWD_ITEM_HOOK(error, item, priv->out);
|
||||
}
|
||||
|
||||
if (item)
|
||||
NG_FREE_ITEM(item);
|
||||
|
||||
return (error);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue