diff options
| author | Ruslan Ermilov <ru@FreeBSD.org> | 2003-11-17 19:13:44 +0000 |
|---|---|---|
| committer | Ruslan Ermilov <ru@FreeBSD.org> | 2003-11-17 19:13:44 +0000 |
| commit | cdea8b85bb82f57e7dd7411f8f39b1fc33a725e9 (patch) | |
| tree | 437187ba22cfbc6e6381cde778238d5927d228ba /sys | |
| parent | d47c9466dd1151dd2e95be27f69e9219e541cdee (diff) | |
Notes
Diffstat (limited to 'sys')
| -rw-r--r-- | sys/netgraph/ng_etf.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/netgraph/ng_etf.c b/sys/netgraph/ng_etf.c index b452bdd2143d..1db84a00043f 100644 --- a/sys/netgraph/ng_etf.c +++ b/sys/netgraph/ng_etf.c @@ -322,7 +322,8 @@ ng_etf_rcvmsg(node_p node, item_p item, hook_p lasthook) MALLOC(fil, struct filter *, sizeof(*fil), M_NETGRAPH_ETF, M_NOWAIT | M_ZERO); if (fil == NULL) { - return (ENOMEM); + error = ENOMEM; + break; } fil->match_hook = hook; @@ -472,6 +473,7 @@ ng_etf_disconnect(hook_p hook) LIST_FOREACH(fil, (etfp->hashtable + i), next) { if (fil->match_hook == hook) { LIST_REMOVE(fil, next); + FREE(fil, M_NETGRAPH_ETF); } } } |
