diff options
author | Ulrich Drepper <drepper@redhat.com> | 2006-05-25 15:52:21 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 2006-05-25 15:52:21 +0000 |
commit | 6bcb494a99389d8c9b5846f8fe32dd9e791f94f7 (patch) | |
tree | 3be2bb38a3f18bc6fcfedec2440276b539833db1 /nis | |
parent | 07bfff20c78f861cb0cca78e4d26b9c662d21248 (diff) | |
download | glibc-6bcb494a99389d8c9b5846f8fe32dd9e791f94f7.zip glibc-6bcb494a99389d8c9b5846f8fe32dd9e791f94f7.tar.gz glibc-6bcb494a99389d8c9b5846f8fe32dd9e791f94f7.tar.bz2 |
* nis/nis_callback.c (__nis_create_callback): Always call xdr_free
for cleanup when cb!=NULL [Coverity CID 233].
Diffstat (limited to 'nis')
-rw-r--r-- | nis/nis_callback.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/nis/nis_callback.c b/nis/nis_callback.c index 7c76f99..e0acd96 100644 --- a/nis/nis_callback.c +++ b/nis/nis_callback.c @@ -360,8 +360,7 @@ __nis_create_callback (int (*callback) (const_nis_name, const nis_object *, { if (cb->xprt) svc_destroy (cb->xprt); - if (cb->serv) - xdr_free ((xdrproc_t) _xdr_nis_server, (char *) cb->serv); + xdr_free ((xdrproc_t) _xdr_nis_server, (char *) cb->serv); free (cb); } if (!nomsg) |