Skip to content

Commit e0e3bd4

Browse files
committed
Fix a memory leak
1 parent 7b0c9ae commit e0e3bd4

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

vcfnorm.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -598,6 +598,8 @@ static int realign(args_t *args, bcf1_t *line)
598598

599599
if ( i>0 && als[i].l==als[0].l && !strcasecmp(als[0].s,als[i].s) ) return ERR_DUP_ALLELE;
600600
}
601+
free(ref);
602+
ref = NULL;
601603

602604
// which direction are we aligning?
603605
int left_align = is_left_align(args, line);

0 commit comments

Comments
 (0)