Re: Fix for regexp memory leak.

Mikael Djurfeldt (mdj@nada.kth.se)
09 Jun 1998 22:24:23 +0200

"ccf::satchell"@hermes.dra.hmg.gb writes:

> 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.

1998-06-09 Mikael Djurfeldt <mdj@mdj.nada.kth.se>

* regex-posix.c (scm_regexp_exec): Free malloced memory. (Thanks
to Julian Satchell and Roland Kaufmann.)