Go backward to Using Registers.
Go up to GNU Regex Functions.
Freeing GNU Pattern Buffers
---------------------------
To free any allocated fields of a pattern buffer, you can use the
POSIX function described in See Freeing POSIX Pattern Buffers,
since the type `regex_t'--the type for POSIX pattern buffers--is
equivalent to the type `re_pattern_buffer'. After freeing a pattern
buffer, you need to again compile a regular expression in it (*note GNU
Regular Expression Compiling::.) before passing it to a matching or
searching function.