diff options
author | dholland <dholland@NetBSD.org> | 2008-02-24 01:37:57 +0000 |
---|---|---|
committer | dholland <dholland@NetBSD.org> | 2008-02-24 01:37:57 +0000 |
commit | 018f1faba999e0e48431c237e74692b0d0fd73d6 (patch) | |
tree | 8052533e0b8fd3bf5993d338456fa81d26a29192 /monop | |
parent | 32a800043a2881eeac626f1863041113c8c71410 (diff) | |
download | bsdgames-darwin-018f1faba999e0e48431c237e74692b0d0fd73d6.tar.gz bsdgames-darwin-018f1faba999e0e48431c237e74692b0d0fd73d6.tar.zst bsdgames-darwin-018f1faba999e0e48431c237e74692b0d0fd73d6.zip |
Sort out the memory leak fix properly.
Diffstat (limited to 'monop')
-rw-r--r-- | monop/trade.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/monop/trade.c b/monop/trade.c index 4e130af3..bfbfb6cd 100644 --- a/monop/trade.c +++ b/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) |