[Serdev] append_hf_before
Andrei Pelinescu-Onciul
pelinescu-onciul at fokus.fraunhofer.de
Thu Jan 1 15:38:06 UTC 2004
On Jan 01, 2004 at 13:53, Juha Heinanen <jh at tutpro.com> wrote:
> andrei,
>
> thanks for the pointer to search_append. i got search_insert done.
> while writing it i noticed that there is no regfree call in whole
> textops.c. i have the impression that regexp memory allocated by
> regcomp must be freed by regfree.
Yes, you are right, but in textops case the compiled regexes live as
long as ser so we don't need to free them. The regexes are compiled only
once, on ser/module startup (fixup_* functions) (they are not compiled
before each use). It would probably look nicer to free them from the
textops module destroy functions, but this would have only an estetic
value since this function is called only when ser exits.
Andrei
More information about the Serdev
mailing list