mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-30 16:51:41 +00:00
Plug item leak, which occured when m_pullup() failed.
This commit is contained in:
parent
13591063f0
commit
0e406d0f63
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=143912
@ -467,11 +467,10 @@ ng_netflow_rcvdata (hook_p hook, item_p item)
|
||||
error = ng_netflow_flow_add(priv, &m, iface);
|
||||
|
||||
done:
|
||||
if (m) {
|
||||
if (item)
|
||||
NG_FREE_ITEM(item);
|
||||
if (item)
|
||||
NG_FREE_ITEM(item);
|
||||
if (m)
|
||||
NG_FREE_M(m);
|
||||
}
|
||||
|
||||
return (error);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user