diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 1999-12-27 15:33:22 -0200 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 1999-12-27 15:33:22 -0200 |
commit | acdb0b741e31adebfa4f608f8bf23e65fa68d741 (patch) | |
tree | a4f3bb695c4b2ae03ef8e02d15953bc12de25a9d /lmem.c | |
parent | 5b08fcd5a1392a7440cae91e68f350a44b136806 (diff) | |
download | lua-acdb0b741e31adebfa4f608f8bf23e65fa68d741.tar.gz lua-acdb0b741e31adebfa4f608f8bf23e65fa68d741.tar.bz2 lua-acdb0b741e31adebfa4f608f8bf23e65fa68d741.zip |
comments.
Diffstat (limited to 'lmem.c')
-rw-r--r-- | lmem.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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); |