summaryrefslogtreecommitdiffstats
path: root/lib/libc/rpc/crypt_client.c
diff options
context:
space:
mode:
authorngie <ngie@FreeBSD.org>2016-12-03 18:26:41 +0000
committerngie <ngie@FreeBSD.org>2016-12-03 18:26:41 +0000
commita4d5a979afffa956cd62a5ed84cc7e57fc99bb55 (patch)
tree4898802711705eccc8de5ca575e2bfd5d5bd6de8 /lib/libc/rpc/crypt_client.c
parent29e1b86e44b4c0e4a32ecabecb3fdaab566d2ef3 (diff)
downloadFreeBSD-src-a4d5a979afffa956cd62a5ed84cc7e57fc99bb55.zip
FreeBSD-src-a4d5a979afffa956cd62a5ed84cc7e57fc99bb55.tar.gz
MFC r278039:
r278039 (by pfg): Resource leak CID: 1016703
Diffstat (limited to 'lib/libc/rpc/crypt_client.c')
-rw-r--r--lib/libc/rpc/crypt_client.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/libc/rpc/crypt_client.c b/lib/libc/rpc/crypt_client.c
index 9f343f5..b7f0d1ff 100644
--- a/lib/libc/rpc/crypt_client.c
+++ b/lib/libc/rpc/crypt_client.c
@@ -61,6 +61,7 @@ _des_crypt_call(char *buf, int len, struct desparams *dparms)
}
if (nconf == NULL) {
warnx("getnetconfig: %s", nc_sperror());
+ endnetconfig(localhandle);
return(DESERR_HWERROR);
}
clnt = clnt_tp_create(NULL, CRYPT_PROG, CRYPT_VERS, nconf);
OpenPOWER on IntegriCloud