diff options
| author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 1994-11-02 17:09:23 -0200 |
|---|---|---|
| committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 1994-11-02 17:09:23 -0200 |
| commit | ac68a3abc483cf1b1473fd35e00cc4f887baab92 (patch) | |
| tree | ba0f8bff717db917395b1129d9200be018893d39 /table.c | |
| parent | f53460aab94c64879624c72222e282fe492122ae (diff) | |
| download | lua-ac68a3abc483cf1b1473fd35e00cc4f887baab92.tar.gz lua-ac68a3abc483cf1b1473fd35e00cc4f887baab92.tar.bz2 lua-ac68a3abc483cf1b1473fd35e00cc4f887baab92.zip | |
frees filename from file stack
Diffstat (limited to '')
| -rw-r--r-- | table.c | 4 |
1 files changed, 2 insertions, 2 deletions
| @@ -3,7 +3,7 @@ | |||
| 3 | ** Module to control static tables | 3 | ** Module to control static tables |
| 4 | */ | 4 | */ |
| 5 | 5 | ||
| 6 | char *rcs_table="$Id: table.c,v 2.5 1994/10/17 21:45:00 roberto Exp roberto $"; | 6 | char *rcs_table="$Id: table.c,v 2.6 1994/10/18 18:34:47 roberto Exp $"; |
| 7 | 7 | ||
| 8 | #include <stdlib.h> | 8 | #include <stdlib.h> |
| 9 | #include <string.h> | 9 | #include <string.h> |
| @@ -255,7 +255,7 @@ int lua_addfile (char *fn) | |||
| 255 | */ | 255 | */ |
| 256 | int lua_delfile (void) | 256 | int lua_delfile (void) |
| 257 | { | 257 | { |
| 258 | lua_nfile--; | 258 | free(lua_file[lua_nfile--]); |
| 259 | return 1; | 259 | return 1; |
| 260 | } | 260 | } |
| 261 | 261 | ||
