small "bugs" detected by Purify: some blocks may be smaller than

sizeof(int).
This commit is contained in:
Roberto Ierusalimschy 1997-04-01 18:23:20 -03:00
parent 59744f0311
commit f83bc86e51
1 changed files with 2 additions and 2 deletions

View File

@ -3,7 +3,7 @@
** TecCGraf - PUC-Rio
*/
char *rcs_luamem = "$Id: mem.c,v 1.14 1997/03/03 19:55:38 roberto Exp roberto $";
char *rcs_luamem = "$Id: luamem.c,v 1.15 1997/03/31 14:17:09 roberto Exp roberto $";
#include <stdlib.h>
@ -19,7 +19,7 @@ void luaI_free (void *block)
{
if (block)
{
*((int *)block) = -1; /* to catch errors */
*((char *)block) = -1; /* to catch errors */
free(block);
}
}