Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[BZ #5541]
	* sunrpc/rpc_thread.c (__rpc_thread_destroy): Also free xports and
	pollfd structures.
	Patch by André Cruz.
  • Loading branch information
Ulrich Drepper committed Jan 9, 2008
1 parent aa693c6 commit f6bacb8
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
5 changes: 5 additions & 0 deletions ChangeLog
@@ -1,5 +1,10 @@
2008-01-09 Ulrich Drepper <drepper@redhat.com>

[BZ #5541]
* sunrpc/rpc_thread.c (__rpc_thread_destroy): Also free xports and
pollfd structures.
Patch by André Cruz.

[BZ #5545]
* sunrpc/clnt_perr.c (clnt_sperror): Don't use fixed size buffer.
(clnt_spcreateerror): Likewise.
Expand Down
3 changes: 2 additions & 1 deletion malloc/malloc.c
Expand Up @@ -3772,8 +3772,9 @@ public_mEMALIGn(size_t alignment, size_t bytes)
} else {
#if USE_ARENAS
/* ... or sbrk() has failed and there is still a chance to mmap() */
ar_ptr = arena_get2(ar_ptr->next ? ar_ptr : 0, bytes);
mstate prev = ar_ptr->next ? ar_ptr : 0;
(void)mutex_unlock(&ar_ptr->mutex);
ar_ptr = arena_get2(prev, bytes);
if(ar_ptr) {
p = _int_memalign(ar_ptr, alignment, bytes);
(void)mutex_unlock(&ar_ptr->mutex);
Expand Down
2 changes: 2 additions & 0 deletions sunrpc/rpc_thread.c
Expand Up @@ -29,6 +29,8 @@ __rpc_thread_destroy (void)
free (tvp->svcraw_private_s);
free (tvp->authdes_cache_s);
free (tvp->authdes_lru_s);
free (tvp->svc_xports_s);
free (tvp->svc_pollfd_s);
if (tvp != &__libc_tsd_RPC_VARS_mem)
free (tvp);
__libc_tsd_set (RPC_VARS, NULL);
Expand Down

0 comments on commit f6bacb8

Please sign in to comment.