mirror of
https://sourceware.org/git/glibc.git
synced 2024-12-22 10:50:07 +00:00
* nis/nis_callback.c (__nis_create_callback): Always call xdr_free
for cleanup when cb!=NULL [Coverity CID 233].
This commit is contained in:
parent
07bfff20c7
commit
6bcb494a99
@ -1,3 +1,8 @@
|
||||
2006-05-25 Ulrich Drepper <drepper@redhat.com>
|
||||
|
||||
* nis/nis_callback.c (__nis_create_callback): Always call xdr_free
|
||||
for cleanup when cb!=NULL [Coverity CID 233].
|
||||
|
||||
2006-05-24 Ulrich Drepper <drepper@redhat.com>
|
||||
|
||||
[BZ #2693]
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user