diff options
| author | Ian Dowse <iedowse@FreeBSD.org> | 2001-07-14 17:17:48 +0000 |
|---|---|---|
| committer | Ian Dowse <iedowse@FreeBSD.org> | 2001-07-14 17:17:48 +0000 |
| commit | c8a28c2ec9d16becbfe9bbf62972e60dfb7e7344 (patch) | |
| tree | 51cddda5c87559466c4203530110ae046f612769 /usr.sbin/rpcbind/check_bound.c | |
| parent | 05c4b26e95fb24328e5458d166648c32642847c6 (diff) | |
Notes
Diffstat (limited to 'usr.sbin/rpcbind/check_bound.c')
| -rw-r--r-- | usr.sbin/rpcbind/check_bound.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/usr.sbin/rpcbind/check_bound.c b/usr.sbin/rpcbind/check_bound.c index fe503d74ebd64..e5f7081b6f172 100644 --- a/usr.sbin/rpcbind/check_bound.c +++ b/usr.sbin/rpcbind/check_bound.c @@ -94,6 +94,7 @@ check_bound(struct fdlist *fdl, char *uaddr) fd = __rpc_nconf2fd(fdl->nconf); if (fd < 0) { + free(na->buf); free(na); return (TRUE); } @@ -101,6 +102,7 @@ check_bound(struct fdlist *fdl, char *uaddr) ans = bind(fd, (struct sockaddr *)na->buf, na->len); close(fd); + free(na->buf); free(na); return (ans == 0 ? FALSE : TRUE); |
