deps/kb_meme/meme-5.0.1/src/seq-reader-from-fasta.c
/******************************************************************************
 * This function frees an instance of the sequence FASTA reader UDT.
 *****************************************************************************/
This function frees an instance of the sequence FASTA reader UDT.
This function frees an instance of the sequence FASTA reader UDT .
void free_seq_reader_from_fasta(DATA_BLOCK_READER_T *reader) {
  SEQ_READER_FROM_FASTA_T *fasta_reader 
    = (SEQ_READER_FROM_FASTA_T *) get_data_block_reader_data(reader);
  myfree(fasta_reader->seq_buffer);
  fasta_reader->seq_buffer_index = 0;
  fasta_reader->seq_buffer_last = 0;
  myfree(fasta_reader->filename);
  fasta_reader->filename_len = 0;
  myfree(fasta_reader->seq_header);
  fasta_reader->seq_header_len = 0;
  fasta_reader->seq_header_len = 0;
  myfree(fasta_reader->seq_name);
  fasta_reader->seq_name_len = 0;
  fasta_reader->seq_name_len = 0;
  alph_release(fasta_reader->alphabet);
  myfree(fasta_reader);
}
void free_seq_reader_from_fasta ( DATA_BLOCK_READER_T * reader ) { SEQ_READER_FROM_FASTA_T * fasta_reader = ( SEQ_READER_FROM_FASTA_T * ) get_data_block_reader_data ( reader ) ; myfree ( fasta_reader -> seq_buffer ) ; fasta_reader -> seq_buffer_index = 0 ; fasta_reader -> seq_buffer_last = 0 ; myfree ( fasta_reader -> filename ) ; fasta_reader -> filename_len = 0 ; myfree ( fasta_reader -> seq_header ) ; fasta_reader -> seq_header_len = 0 ; fasta_reader -> seq_header_len = 0 ; myfree ( fasta_reader -> seq_name ) ; fasta_reader -> seq_name_len = 0 ; fasta_reader -> seq_name_len = 0 ; alph_release ( fasta_reader -> alphabet ) ; myfree ( fasta_reader ) ; }
This function frees an instance of the sequence FASTA reader UDT.
This function frees an instance of the sequence FASTA reader UDT .