Skip to content

Commit

Permalink
alloc
Browse files Browse the repository at this point in the history
  • Loading branch information
nh13 authored Jan 17, 2025
1 parent 9af035e commit 17a5a83
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions bwase.c
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,7 @@ void bwa_refine_gapped(const bntseq_t *bns, int n_seqs, bwa_seq_t *seqs, ubyte_t
{
ubyte_t *pacseq;
int i, j, k;
kstring_t *str;
kstring_t *str = (kstring_t*)calloc(1, sizeof(kstring_t));

if (!_pacseq) {
pacseq = (ubyte_t*)calloc(bns->l_pac/4+1, 1);
Expand Down Expand Up @@ -324,7 +324,6 @@ void bwa_refine_gapped(const bntseq_t *bns, int n_seqs, bwa_seq_t *seqs, ubyte_t
if (s->cigar == 0) s->type = BWA_TYPE_NO_MATCH;
}
// generate MD tag
str = (kstring_t*)calloc(1, sizeof(kstring_t));
for (i = 0; i != n_seqs; ++i) {
bwa_seq_t *s = seqs + i;
if (s->type != BWA_TYPE_NO_MATCH) {
Expand Down

0 comments on commit 17a5a83

Please sign in to comment.