diff options
author | Renato Botelho <renato@netgate.com> | 2015-11-16 07:57:22 -0200 |
---|---|---|
committer | Renato Botelho <renato@netgate.com> | 2015-11-16 07:57:22 -0200 |
commit | ad0b136d63d70552782c5c4936ce97e8aa42442e (patch) | |
tree | 44825d3d4a6cdbed690f2a6d5611f043119188fd /lib/libc/rpc/rpc_soc.c | |
parent | 2e02b14e19fd0fe27055d4a6e11a65e76882bf5f (diff) | |
parent | d1d4e816ce49797ab1f23bb48cf5ee69018df284 (diff) | |
download | FreeBSD-src-ad0b136d63d70552782c5c4936ce97e8aa42442e.zip FreeBSD-src-ad0b136d63d70552782c5c4936ce97e8aa42442e.tar.gz |
Merge remote-tracking branch 'origin/stable/10' into devel
Diffstat (limited to 'lib/libc/rpc/rpc_soc.c')
-rw-r--r-- | lib/libc/rpc/rpc_soc.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/libc/rpc/rpc_soc.c b/lib/libc/rpc/rpc_soc.c index d7702f5..fbcec05 100644 --- a/lib/libc/rpc/rpc_soc.c +++ b/lib/libc/rpc/rpc_soc.c @@ -472,8 +472,7 @@ clntunix_create(raddr, prog, vers, sockp, sendsz, recvsz) if ((raddr->sun_len == 0) || ((svcaddr = malloc(sizeof(struct netbuf))) == NULL ) || ((svcaddr->buf = malloc(sizeof(struct sockaddr_un))) == NULL)) { - if (svcaddr != NULL) - free(svcaddr); + free(svcaddr); rpc_createerr.cf_stat = RPC_SYSTEMERROR; rpc_createerr.cf_error.re_errno = errno; return(cl); |