Plug item leak, which occured when m_pullup() failed.
This commit is contained in:
parent
cc6fd34f2d
commit
c3ce324b44
@ -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…
x
Reference in New Issue
Block a user