diff options
Diffstat (limited to 'usr.sbin/rpcbind')
-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 fe503d7..e5f7081 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); |