]> git.donarmstrong.com Git - samtools.git/blobdiff - sam_header.c
Fix memory leaks:
[samtools.git] / sam_header.c
index a1b518101ad20aefb297c240a68756da8eebc371..ddc2c38569f4ee0430439bc10a6e34240939ed5d 100644 (file)
@@ -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;