X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=sam_header.c;h=ddc2c38569f4ee0430439bc10a6e34240939ed5d;hb=2fa4cde9b8806faceffb8677440b54ca4c90b6f7;hp=a1b518101ad20aefb297c240a68756da8eebc371;hpb=c857677f2a3af9da652dd6b5fc97249368e6e7d8;p=samtools.git diff --git a/sam_header.c b/sam_header.c index a1b5181..ddc2c38 100644 --- a/sam_header.c +++ b/sam_header.c @@ -366,6 +366,7 @@ static HeaderLine *sam_header_line_parse(const char *headerLine) while (*to && *to=='\t') to++; if ( to-from != 1 ) { debug("[sam_header_line_parse] multiple tabs on line [%s] (%d)\n", headerLine,(int)(to-from)); + free(hline); return 0; } from = to;