]> git.donarmstrong.com Git - samtools.git/blobdiff - bam.c
Release samtools-0.1.5a (for compatibility with Bio::DB::Sam)
[samtools.git] / bam.c
diff --git a/bam.c b/bam.c
index e3cb6bd0526ff7e97403cf0b38882bda51075a7a..1ff4a5aba25028f4fccdd0735a9dcae594b6e9a8 100644 (file)
--- a/bam.c
+++ b/bam.c
@@ -1,5 +1,6 @@
 #include <stdio.h>
 #include <ctype.h>
+#include <assert.h>
 #include "bam.h"
 #include "bam_endian.h"
 #include "kstring.h"
@@ -285,4 +286,5 @@ void bam_view1(const bam_header_t *header, const bam1_t *b)
 {
        char *s = bam_format1(header, b);
        printf("%s\n", s);
+       free(s);
 }