Fix for regexp memory leak.
"ccf::satchell"@hermes.dra.hmg.gb
Tue, 09 Jun 1998 18:15:57 GMT
I have found a fix for the regexp memory leak. In the file regex-posix.c
the routine scm_regexp_exec mallocs memory for a match structure at line
242, which is never freed. Inserting the line
scm_must_free ( (char *)matches);
before SCM_ALLOW_INTS fixes the problem. Thank you to roland for his help.
Julian Satchell
<satchell@dera.gov.uk>