summaryrefslogtreecommitdiff
path: root/lmem.c
diff options
context:
space:
mode:
Diffstat (limited to 'lmem.c')
-rw-r--r--lmem.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lmem.c b/lmem.c
index 47c45156..349bf751 100644
--- a/lmem.c
+++ b/lmem.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lmem.c,v 1.21 1999/11/29 16:38:48 roberto Exp roberto $ 2** $Id: lmem.c,v 1.22 1999/12/14 18:31:20 roberto Exp roberto $
3** Interface to Memory Manager 3** Interface to Memory Manager
4** See Copyright Notice in lua.h 4** See Copyright Notice in lua.h
5*/ 5*/
@@ -49,7 +49,7 @@ void *luaM_realloc (lua_State *L, void *block, unsigned long size) {
49 if (s != size) 49 if (s != size)
50 lua_error(L, "memory allocation error: block too big"); 50 lua_error(L, "memory allocation error: block too big");
51 if (size == 0) { 51 if (size == 0) {
52 free(block); /* block may be NULL, that is OK for free */ 52 free(block); /* block may be NULL; that is OK for free */
53 return NULL; 53 return NULL;
54 } 54 }
55 block = realloc(block, s); 55 block = realloc(block, s);