hmmer-3.3/easel/esl_sq.c
/* sq_free_internals()
 * Free the insides of an <ESL_SQ> but not the shell.
 * We need this version in a ESL_SQ_BLOCK, which allocates
 * an array of ESL_SQ structures, not one at a time.
 */
sq_free_internals()
Free the insides of an  but not the shell.
We need this version in a ESL_SQ_BLOCK, which allocates
an array of ESL_SQ structures, not one at a time.
sq_free_internals () Free the insides of an but not the shell . We need this version in a ESL_SQ_BLOCK which allocates an array of ESL_SQ structures not one at a time .
static void
sq_free_internals(ESL_SQ *sq)
{
  if (sq)
    {
      int   x;        
      free(sq->name);  
      free(sq->acc);   
      free(sq->desc);  
      free(sq->seq);   
      free(sq->dsq);   
      free(sq->ss);    
      free(sq->source);
      if (sq->nxr) {  
	for (x = 0; x < sq->nxr; x++) {
	  free(sq->xr[x]);
	  free(sq->xr_tag[x]);
	}
      }
      free(sq->xr);
      free(sq->xr_tag);
    }
  return;
}
static void sq_free_internals ( ESL_SQ * sq ) { if ( sq ) { int x ; free ( sq -> name ) ; free ( sq -> acc ) ; free ( sq -> desc ) ; free ( sq -> seq ) ; free ( sq -> dsq ) ; free ( sq -> ss ) ; free ( sq -> source ) ; if ( sq -> nxr ) { for ( x = 0 ; x < sq -> nxr ; x ++ ) { free ( sq -> xr [ x ] ) ; free ( sq -> xr_tag [ x ] ) ; } } free ( sq -> xr ) ; free ( sq -> xr_tag ) ; } return ; }
sq_free_internals()
 Free the insides of an <ESL_SQ> but not the shell.
sq_free_internals () Free the insides of an <ESL_SQ > but not the shell .
/* index for optional extra residue markups */