Sort out the memory leak fix properly.

This commit is contained in:
dholland 2008-02-24 01:37:57 +00:00
parent fe527d1ba8
commit 67021c2ac7

View File

@ -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)