summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorpfg <pfg@FreeBSD.org>2015-02-01 23:19:06 +0000
committerpfg <pfg@FreeBSD.org>2015-02-01 23:19:06 +0000
commitaf9bc93dfbffeb34066bd80ee1ff52010498b94c (patch)
tree5c96087b549bb290dc7fb499f0ab99c99edfedd7 /lib
parent6bc8b6eb4c7154f6740245cb0b45f9bc2e04945f (diff)
downloadFreeBSD-src-af9bc93dfbffeb34066bd80ee1ff52010498b94c.zip
FreeBSD-src-af9bc93dfbffeb34066bd80ee1ff52010498b94c.tar.gz
Resource leak
CID: 1016703 Reviewed by: alfred
Diffstat (limited to 'lib')
-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 4e5c793..5290021 100644
--- a/lib/libc/rpc/crypt_client.c
+++ b/lib/libc/rpc/crypt_client.c
@@ -64,6 +64,7 @@ _des_crypt_call(buf, len, 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