mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-04 09:09:56 +00:00
Another brian fix, luckily not in live code.
This commit is contained in:
parent
bfbdd08421
commit
cdbfe12417
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=70933
@ -361,10 +361,8 @@ ng_bpf_rcvmsg(node_p node, item_p item, hook_p lasthook)
|
||||
error = EINVAL;
|
||||
break;
|
||||
}
|
||||
NG_RESPOND_MSG(error, node, item, resp);
|
||||
done:
|
||||
if (item)
|
||||
NG_FREE_ITEM(item);
|
||||
NG_RESPOND_MSG(error, node, item, resp);
|
||||
NG_FREE_MSG(msg);
|
||||
return (error);
|
||||
}
|
||||
|
@ -377,10 +377,11 @@ ng_xxx_rcvdata(hook_p hook, item_p item )
|
||||
}
|
||||
} else {
|
||||
/* It's the debug hook, throw it away.. */
|
||||
if (hook == xxxp->downstream_hook.hook)
|
||||
if (hook == xxxp->downstream_hook.hook) {
|
||||
NG_FREE_ITEM(item);
|
||||
NG_FREE_M(m);
|
||||
}
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user