summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>1999-05-29 20:20:53 +0000
committerRoland McGrath <roland@gnu.org>1999-05-29 20:20:53 +0000
commit3394e1801bb74af09765c191d42a7fc2446b0c4c (patch)
tree3f3112b67f5e0f340d85eca86f31e1feface33c7
parent7dfdfb60c553604b91c25f45f91aa8f35d544ff3 (diff)
1999-05-29 Roland McGrath <roland@baalperazim.frob.com>
* context.c (ps_context_free): Don't call ihash_free on PC->procs twice! Instead, call it on ttys, ttys_by_cttyid, and users.
-rw-r--r--libps/context.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/libps/context.c b/libps/context.c
index 4c5aeaf0..eddbc50c 100644
--- a/libps/context.c
+++ b/libps/context.c
@@ -1,8 +1,8 @@
/* The ps_context type, for per-procserver and somewhat global state.
- Copyright (C) 1995, 1996 Free Software Foundation, Inc.
+ Copyright (C) 1995,96,99 Free Software Foundation, Inc.
- Written by Miles Bader <miles@gnu.ai.mit.edu>
+ Written by Miles Bader <miles@gnu.org>
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License as
@@ -76,7 +76,9 @@ void
ps_context_free (struct ps_context *pc)
{
ihash_free (pc->procs);
- ihash_free (pc->procs);
+ ihash_free (pc->ttys);
+ ihash_free (pc->ttys_by_cttyid);
+ ihash_free (pc->users);
free (pc);
}