r129: fixed memory leak caused by qualities

This commit is contained in:
Heng Li
2017-06-30 23:48:00 -04:00
parent 10910b72d1
commit 41efd03d7a
6 changed files with 24 additions and 8 deletions
+1 -1
View File
@@ -217,7 +217,7 @@ static void *worker_pipeline(void *shared, int step, void *in)
step_t *s;
if (p->sum_len > p->batch_size) return 0;
s = (step_t*)calloc(1, sizeof(step_t));
s->seq = bseq_read(p->fp, p->mini_batch_size, &s->n_seq); // read a mini-batch
s->seq = bseq_read(p->fp, p->mini_batch_size, 0, &s->n_seq); // read a mini-batch
if (s->seq) {
uint32_t old_m, m;
uint64_t sum_len, old_max_len, max_len;