Skip to content

Commit

Permalink
* nis/nis_callback.c (__nis_create_callback): Always call xdr_free
Browse files Browse the repository at this point in the history
	for cleanup when cb!=NULL [Coverity CID 233].
  • Loading branch information
Ulrich Drepper committed May 25, 2006
1 parent 07bfff2 commit 6bcb494
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
5 changes: 5 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -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]
Expand Down
3 changes: 1 addition & 2 deletions nis/nis_callback.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 6bcb494

Please sign in to comment.