hmmer-3.3/src/fm_general.c
/* Function:  fm_configDestroy()
 * Synopsis:  Destroy various memory items used for the FMindex implementation
 *
 * Purpose:   Destroy the masks used by the FM index, the metadata for
 *            the FM index, and the config itself.
 */
fm_configDestroy()
Synopsis:  Destroy various memory items used for the FMindex implementation

Destroy the masks used by the FM index, the metadata for
the FM index, and the config itself.
fm_configDestroy () Synopsis : Destroy various memory items used for the FMindex implementation Destroy the masks used by the FM index the metadata for the FM index and the config itself .
int
fm_configDestroy(FM_CFG *cfg ) {
  if (cfg) {
#if defined (eslENABLE_SSE)
    if (cfg->fm_chars_mem)         free(cfg->fm_chars_mem);
    if (cfg->fm_masks_mem)         free(cfg->fm_masks_mem);
    if (cfg->fm_reverse_masks_mem) free(cfg->fm_reverse_masks_mem);
#endif
    fm_metaDestroy(cfg->meta);
    free(cfg);
  }
  return eslOK;
}
int fm_configDestroy ( FM_CFG * cfg ) { if ( cfg ) { #if defined ( eslENABLE_SSE ) if ( cfg -> fm_chars_mem ) free ( cfg -> fm_chars_mem ) ; if ( cfg -> fm_masks_mem ) free ( cfg -> fm_masks_mem ) ; if ( cfg -> fm_reverse_masks_mem ) free ( cfg -> fm_reverse_masks_mem ) ; #endif fm_metaDestroy ( cfg -> meta ) ; free ( cfg ) ; } return eslOK ; }
Function:  fm_configDestroy()
 Synopsis:  Destroy various memory items used for the FMindex implementation
Function : fm_configDestroy () Synopsis : Destroy various memory items used for the FMindex implementation