1
0
mirror of https://github.com/openbsd/src.git synced 2025-01-10 06:47:55 -08:00

okan noticed this was actually calling the cfree turd.

This commit is contained in:
tedu 2014-12-08 21:11:02 +00:00
parent d931707680
commit 0affe7fc21
3 changed files with 7 additions and 7 deletions

View File

@ -1,4 +1,4 @@
/* $OpenBSD: execute.c,v 1.9 2009/10/27 23:59:26 deraadt Exp $ */
/* $OpenBSD: execute.c,v 1.10 2014/12/08 21:11:02 tedu Exp $ */
/* $NetBSD: execute.c,v 1.3 1995/03/23 08:34:38 cgd Exp $ */
/*
@ -257,7 +257,7 @@ game_restore()
{
int i;
cfree(play);
free(play);
for (i = 0; i < num_play; i++)
free(name_list[i]);
restore();

View File

@ -1,4 +1,4 @@
/* $OpenBSD: monop.c,v 1.11 2013/08/29 20:22:16 naddy Exp $ */
/* $OpenBSD: monop.c,v 1.12 2014/12/08 21:11:02 tedu Exp $ */
/* $NetBSD: monop.c,v 1.3 1995/03/23 08:34:52 cgd Exp $ */
/*
@ -112,7 +112,7 @@ blew_it:
printf("\"done\" is a reserved word. Please try again\n");
for (i = 0; i < num_play; i++)
free(play[i].name);
cfree(play);
free(play);
goto blew_it;
}
}

View File

@ -1,4 +1,4 @@
/* $OpenBSD: prop.c,v 1.7 2009/10/27 23:59:26 deraadt Exp $ */
/* $OpenBSD: prop.c,v 1.8 2014/12/08 21:11:02 tedu Exp $ */
/* $NetBSD: prop.c,v 1.3 1995/03/23 08:35:06 cgd Exp $ */
/*
@ -68,7 +68,7 @@ add_list(plr, head, op_sqr)
last_tp = NULL;
for (tp = *head; tp && value(tp->sqr) < val; tp = tp->next)
if (val == value(tp->sqr)) {
cfree(op);
free(op);
return;
}
else
@ -113,7 +113,7 @@ del_list(plr, head, op_sqr)
*head = op->next;
else {
last_op->next = op->next;
cfree(op);
free(op);
}
}
/*