Brian Mancuso writes: > +#ifdef USE_THREADS > + > + r->regexp_index = number_of_regexps++; > + > + /* If the thread compiling this regular expression doesn't > + * yet have space for its match variables, allocate space. */ This is a memory leak. > - r->subbeg = NULL; > + get_match_node(r)->subbeg = NULL; This should have been MATCH_DATA(r) (or somesuch). IlyaThread Previous | Thread Next