1
0
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:
Julian Elischer 2001-01-11 15:44:41 +00:00
parent bfbdd08421
commit cdbfe12417
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=70933
2 changed files with 3 additions and 4 deletions

View File

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

View File

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