FreeBSD/usr.bin/grep/regex/tre-fastmatch.c
/*
 * Frees the resources that were allocated when the pattern was compiled.
 */
Frees the resources that were allocated when the pattern was compiled.
Frees the resources that were allocated when the pattern was compiled .
void
tre_free_fast(fastmatch_t *fg)
{
  DPRINT(("tre_fast_free: freeing structures for pattern %s\n",
	 fg->pattern));
#ifdef TRE_WCHAR
  hashtable_free(fg->qsBc_table);
  if (!fg->hasdot)
    xfree(fg->bmGs);
  if (fg->wescmap)
    xfree(fg->wescmap);
  xfree(fg->wpattern);
#endif
  if (!fg->hasdot)
    xfree(fg->sbmGs);
  if (fg->escmap)
    xfree(fg->escmap);
  xfree(fg->pattern);
}
void tre_free_fast ( fastmatch_t * fg ) { DPRINT ( ( " \n " , fg -> pattern ) ) ; #ifdef TRE_WCHAR hashtable_free ( fg -> qsBc_table ) ; if ( ! fg -> hasdot ) xfree ( fg -> bmGs ) ; if ( fg -> wescmap ) xfree ( fg -> wescmap ) ; xfree ( fg -> wpattern ) ; #endif if ( ! fg -> hasdot ) xfree ( fg -> sbmGs ) ; if ( fg -> escmap ) xfree ( fg -> escmap ) ; xfree ( fg -> pattern ) ; }
Frees the resources that were allocated when the pattern was compiled.
Frees the resources that were allocated when the pattern was compiled .