From 3394e1801bb74af09765c191d42a7fc2446b0c4c Mon Sep 17 00:00:00 2001 From: Roland McGrath Date: Sat, 29 May 1999 20:20:53 +0000 Subject: 1999-05-29 Roland McGrath * context.c (ps_context_free): Don't call ihash_free on PC->procs twice! Instead, call it on ttys, ttys_by_cttyid, and users. --- libps/context.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'libps/context.c') 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 + Written by Miles Bader 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); } -- cgit v1.2.3