r939: fixed a memory leak (issue #35)

This commit is contained in:
Heng Li 2014-10-21 09:26:19 -04:00
parent 574098d034
commit 5e00d08346
2 changed files with 2 additions and 1 deletions

View File

@ -70,6 +70,7 @@ void mem_pestat(const mem_opt_t *opt, int64_t l_pac, int n, const mem_alnreg_v *
if (q->n < MIN_DIR_CNT) {
fprintf(stderr, "[M::%s] skip orientation %c%c as there are not enough pairs\n", __func__, "FR"[d>>1&1], "FR"[d&1]);
r->failed = 1;
free(q->a);
continue;
} else fprintf(stderr, "[M::%s] analyzing insert size distribution for orientation %c%c...\n", __func__, "FR"[d>>1&1], "FR"[d&1]);
ks_introsort_64(q->n, q->a);

2
main.c
View File

@ -4,7 +4,7 @@
#include "utils.h"
#ifndef PACKAGE_VERSION
#define PACKAGE_VERSION "0.7.10-r933-dirty"
#define PACKAGE_VERSION "0.7.10-r939-dirty"
#endif
int bwa_fa2pac(int argc, char *argv[]);