[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH 1/7] term: fix memory leak
From: |
Samuel Thibault |
Subject: |
Re: [PATCH 1/7] term: fix memory leak |
Date: |
Mon, 26 May 2014 13:40:37 +0200 |
User-agent: |
Mutt/1.5.21+34 (58baf7c9f32f) (2010-12-30) |
Justus Winter, le Mon 26 May 2014 13:19:13 +0200, a écrit :
> I tested this change for some days and have not experienced any
> problems with it.
Ack.
> * term/users.c (pi_destroy_hook): Fix memory leak.
> ---
> term/users.c | 4 +---
> 1 file changed, 1 insertion(+), 3 deletions(-)
>
> diff --git a/term/users.c b/term/users.c
> index 97bc22c..9bd51d0 100644
> --- a/term/users.c
> +++ b/term/users.c
> @@ -259,9 +259,7 @@ pi_destroy_hook (struct trivfs_protid *cred)
> {
> assert (((struct protid_hook *)cred->hook)->refcnt > 0);
> if (--((struct protid_hook *)cred->hook)->refcnt == 0)
> - /* XXX don't free for now, so we can try and catch a multiple-freeing
> - bug. */
> - /* free (cred->hook) */;
> + free (cred->hook);
> }
> pthread_mutex_unlock (&global_lock);
> }
> --
> 2.0.0.rc2
>
--
Samuel
The only "intuitive" interface is the nipple. After that, it's all learned.
(Bruce Ediger, bediger@teal.csn.org, in comp.os.linux.misc, on X interfaces.)
- [PATCH 5/7] libdiskfs: fix node leak in the name cache, (continued)
- [PATCH 5/7] libdiskfs: fix node leak in the name cache, Justus Winter, 2014/05/26
- [PATCH 4/7] trans/mtab: fix initialization, Justus Winter, 2014/05/26
- [PATCH 6/7] libihash: do not use an integer hash function by default, Justus Winter, 2014/05/26
- [PATCH 3/7] ext2fs: fix diskfs_pager_users, Justus Winter, 2014/05/26
- [PATCH 7/7] libtrivfs: lock-less reference counting for trivfs_peropen objects, Justus Winter, 2014/05/26
- Re: [PATCH 1/7] term: fix memory leak,
Samuel Thibault <=