Skip to content

Commit be8dffc

Browse files
committed
t push origin masterMerge branch 'starling13-fix-redundant-memory-alloc'
2 parents 51560bd + c45d772 commit be8dffc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bwamem.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1246,7 +1246,7 @@ void mem_process_seqs(const mem_opt_t *opt, const bwt_t *bwt, const bntseq_t *bn
12461246
w.opt = opt; w.bwt = bwt; w.bns = bns; w.pac = pac;
12471247
w.seqs = seqs; w.n_processed = n_processed;
12481248
w.pes = &pes[0];
1249-
w.aux = malloc(opt->n_threads * sizeof(smem_aux_t));
1249+
w.aux = malloc(opt->n_threads * sizeof(smem_aux_t*));
12501250
for (i = 0; i < opt->n_threads; ++i)
12511251
w.aux[i] = smem_aux_init();
12521252
kt_for(opt->n_threads, worker1, &w, (opt->flag&MEM_F_PE)? n>>1 : n); // find mapping positions

0 commit comments

Comments
 (0)