From 09ca4e828f07115bcc5d1a12082cde41cf81159a Mon Sep 17 00:00:00 2001 From: Heng Li Date: Wed, 24 Jun 2009 13:02:25 +0000 Subject: [PATCH] * samtools-0.1.4-15 (r354) * fixed a memory leak in bam_view1(), although samtools is not using this routine. --- bam.c | 1 + bamtk.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/bam.c b/bam.c index e3cb6bd..7f1ecfd 100644 --- 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 6c4626a..0bcf4a4 100644 --- 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[]); -- 2.39.5