]> git.donarmstrong.com Git - samtools.git/commitdiff
* samtools-0.1.4-15 (r354)
authorHeng Li <lh3@live.co.uk>
Wed, 24 Jun 2009 13:02:25 +0000 (13:02 +0000)
committerHeng Li <lh3@live.co.uk>
Wed, 24 Jun 2009 13:02:25 +0000 (13:02 +0000)
 * fixed a memory leak in bam_view1(), although samtools is not using this routine.

bam.c
bamtk.c

diff --git a/bam.c b/bam.c
index e3cb6bd0526ff7e97403cf0b38882bda51075a7a..7f1ecfd26217cd5f2e3b6ea4b0e1c58cb6d4d06b 100644 (file)
--- a/bam.c
+++ b/bam.c
@@ -285,4 +285,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);
 }
diff --git a/bamtk.c b/bamtk.c
index 6c4626aec3ce3e7160b2294f833361d819970e4d..0bcf4a4fafdca0704eafbea295d477abf4084ef4 100644 (file)
--- a/bamtk.c
+++ b/bamtk.c
@@ -3,7 +3,7 @@
 #include "bam.h"
 
 #ifndef PACKAGE_VERSION
-#define PACKAGE_VERSION "0.1.4-14 (r351)"
+#define PACKAGE_VERSION "0.1.4-15 (r354)"
 #endif
 
 int bam_taf2baf(int argc, char *argv[]);