diff options
author | Justus Winter <4winter@informatik.uni-hamburg.de> | 2014-05-20 16:17:17 +0200 |
---|---|---|
committer | Justus Winter <4winter@informatik.uni-hamburg.de> | 2014-05-26 13:15:25 +0200 |
commit | 22f0bf426ae955c58edb835d6be7be44af5c029d (patch) | |
tree | e1ec5b29383530ac943b8177fac2cf780638cf18 /term/users.c | |
parent | 1333bbbcc18502328cdd78b2aadc526ebd552a77 (diff) |
term: fix memory leak
I tested this change for some days and have not experienced any
problems with it.
* term/users.c (pi_destroy_hook): Fix memory leak.
Diffstat (limited to 'term/users.c')
-rw-r--r-- | term/users.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/term/users.c b/term/users.c index 97bc22c2..9bd51d05 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); } |