deps/kb_meme/meme-5.0.1/src/buffer.c
/*
 * buf_destroy
 * deallocates all memory for the buffer even if some contents have not been read.
 */
buf_destroy
deallocates all memory for the buffer even if some contents have not been read.
buf_destroy deallocates all memory for the buffer even if some contents have not been read .
void buf_destroy(BUF_T *buf) {
  free(buf->buffer);
  memset(buf, 0, sizeof(BUF_T));
  free(buf);
}
void buf_destroy ( BUF_T * buf ) { free ( buf -> buffer ) ; memset ( buf , 0 , sizeof ( BUF_T ) ) ; free ( buf ) ; }
buf_destroy
 deallocates all memory for the buffer even if some contents have not been read.
buf_destroy deallocates all memory for the buffer even if some contents have not been read .