11
- regfree - free everything
12
= extern void regfree(regex_t *);
18
register struct re_guts *g;
20
if (preg->re_magic != MAGIC1) /* oops */
21
return; /* nice to complain, but hard */
24
if (g == NULL || g->magic != MAGIC2) /* oops again */
26
preg->re_magic = 0; /* mark it invalid */
27
g->magic = 0; /* mark it invalid */
30
free((char *)g->strip);
32
free((char *)g->sets);
33
if (g->setbits != NULL)
34
free((char *)g->setbits);