From 67021c2ac783c501fb24c9f6392eefe3943862c1 Mon Sep 17 00:00:00 2001 From: dholland Date: Sun, 24 Feb 2008 01:37:57 +0000 Subject: [PATCH] Sort out the memory leak fix properly. --- games/monop/trade.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/games/monop/trade.c b/games/monop/trade.c index 4e130af3385e..bfbfb6cd5c97 100644 --- a/games/monop/trade.c +++ b/games/monop/trade.c @@ -1,4 +1,4 @@ -/* $NetBSD: trade.c,v 1.13 2008/02/23 22:28:46 dholland Exp $ */ +/* $NetBSD: trade.c,v 1.14 2008/02/24 01:37:57 dholland Exp $ */ /* * Copyright (c) 1980, 1993 @@ -34,7 +34,7 @@ #if 0 static char sccsid[] = "@(#)trade.c 8.1 (Berkeley) 5/31/93"; #else -__RCSID("$NetBSD: trade.c,v 1.13 2008/02/23 22:28:46 dholland Exp $"); +__RCSID("$NetBSD: trade.c,v 1.14 2008/02/24 01:37:57 dholland Exp $"); #endif #endif /* not lint */ @@ -310,9 +310,7 @@ resign() if (cur_p->num_gojf) ret_card(cur_p); } -#if 0 /* notyet */ - free(name_list[player]); -#endif + free(play[player].name); for (i = player; i < num_play; i++) { name_list[i] = name_list[i+1]; if (i + 1 < num_play)