deps/kb_meme/meme-5.0.1/src/meme2meme.c
/**************************************************************************
 * Frees the memory used by a MOTIFS_T including all the referenced MOTIF_T.
 **************************************************************************/
Frees the memory used by a MOTIFS_T including all the referenced MOTIF_T.
Frees the memory used by a MOTIFS_T including all the referenced MOTIF_T .
static void destroy_motifs(void* value) {
  MOTIFS_T *motifs;
  int i;
  motifs = (MOTIFS_T*)value;
  for (i = 0; i < motifs->count; i++) {
    destroy_motif(motifs->list[i]);
  }
  free(motifs->list);
  free(motifs);
}
static void destroy_motifs ( void * value ) { MOTIFS_T * motifs ; int i ; motifs = ( MOTIFS_T * ) value ; for ( i = 0 ; i < motifs -> count ; i ++ ) { destroy_motif ( motifs -> list [ i ] ) ; } free ( motifs -> list ) ; free ( motifs ) ; }
Frees the memory used by a MOTIFS_T including all the referenced MOTIF_T.
Frees the memory used by a MOTIFS_T including all the referenced MOTIF_T .