Plug item leak, which occured when m_pullup() failed.

This commit is contained in:
glebius 2005-03-21 11:48:54 +00:00
parent cc6fd34f2d
commit c3ce324b44

View File

@ -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);
}