diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2010-01-21 07:04:40 -0800 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2010-01-21 07:04:40 -0800 |
commit | 64b09cd68e003f3f1c1b71284aceb90b9c236f05 (patch) | |
tree | e1828fb20176521872266aebb8d9c3ad3460e0e9 /match.c | |
parent | bdca6affe8efdbf294e00aea5468ef066c1a031c (diff) | |
download | txr-64b09cd68e003f3f1c1b71284aceb90b9c236f05.tar.gz txr-64b09cd68e003f3f1c1b71284aceb90b9c236f05.tar.bz2 txr-64b09cd68e003f3f1c1b71284aceb90b9c236f05.zip |
Fix for unbounded memory growth problem reproduced with GCC 4.4.1
on 32 bit x86 Fedora. This happens because the lazy list variable
``data'' in the match_files function is optimized to a register,
but a stale value of that variable persists in the backing storage.
Diffstat (limited to 'match.c')
-rw-r--r-- | match.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -874,6 +874,8 @@ static val match_files(val spec, val files, val data = nil; cnum data_lineno = 0; + gc_hint(data); + if (listp(first_file_parsed)) { data = first_file_parsed; data_lineno = c_num(data_linenum); |