deps/kb_meme/meme-5.0.1/src/mhmm-state.c
/************************************************************************
 * Free the memory used by an mhmm state. 
 ************************************************************************/
Free the memory used by an mhmm state.
Free the memory used by an mhmm state .
static void free_state
  (MHMM_STATE_T *a_state)
{
  if (a_state == NULL)
    return;
  myfree(a_state->itrans_out);
  free_array(a_state->trans_out);
  myfree(a_state->itrans_in);
  free_array(a_state->trans_in);
  free_array(a_state->emit);
  free_array(a_state->emit_odds);
  free_pssm(a_state->pssm);
  free_pssm(a_state->npssm);
}
static void free_state ( MHMM_STATE_T * a_state ) { if ( a_state == NULL ) return ; myfree ( a_state -> itrans_out ) ; free_array ( a_state -> trans_out ) ; myfree ( a_state -> itrans_in ) ; free_array ( a_state -> trans_in ) ; free_array ( a_state -> emit ) ; free_array ( a_state -> emit_odds ) ; free_pssm ( a_state -> pssm ) ; free_pssm ( a_state -> npssm ) ; }
Free the memory used by an mhmm state.
Free the memory used by an mhmm state .
/* Don't bother with empty states. */