diff options
author | Archie Cobbs <archie@FreeBSD.org> | 2000-10-11 19:04:34 +0000 |
---|---|---|
committer | Archie Cobbs <archie@FreeBSD.org> | 2000-10-11 19:04:34 +0000 |
commit | be731c30f3266b890ea7521e543b7ed7e2b3e0db (patch) | |
tree | 2b4e7cc04deb62a0bd4d2227b255d5c31f3a299f /sys/netgraph/ng_ksocket.c | |
parent | 3ab67042284155095ebe562f85381e35e08f6fdb (diff) | |
download | src-be731c30f3266b890ea7521e543b7ed7e2b3e0db.tar.gz src-be731c30f3266b890ea7521e543b7ed7e2b3e0db.zip |
Fix memory leak.
Submitted by: Christopher N. Harrell <cnh@ivmg.net>
Notes
Notes:
svn path=/head/; revision=66980
Diffstat (limited to 'sys/netgraph/ng_ksocket.c')
-rw-r--r-- | sys/netgraph/ng_ksocket.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/netgraph/ng_ksocket.c b/sys/netgraph/ng_ksocket.c index 03435b91478c..73e85a21a183 100644 --- a/sys/netgraph/ng_ksocket.c +++ b/sys/netgraph/ng_ksocket.c @@ -850,7 +850,6 @@ ng_ksocket_incoming(struct socket *so, void *arg, int waitflag) const node_p node = arg; const priv_p priv = node->private; meta_p meta = NULL; - struct sockaddr *nam; struct mbuf *m; struct uio auio; int s, flags, error; @@ -871,7 +870,8 @@ ng_ksocket_incoming(struct socket *so, void *arg, int waitflag) flags = MSG_DONTWAIT; do { if ((error = (*so->so_proto->pr_usrreqs->pru_soreceive) - (so, &nam, &auio, &m, (struct mbuf **)0, &flags)) == 0 + (so, (struct sockaddr **)0, &auio, &m, + (struct mbuf **)0, &flags)) == 0 && m != NULL) { struct mbuf *n; |