diff --git a/bwamem_pair.c b/bwamem_pair.c index 38827843..5d4c5c29 100644 --- a/bwamem_pair.c +++ b/bwamem_pair.c @@ -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); diff --git a/main.c b/main.c index 12b0930a..07a9d008 100644 --- a/main.c +++ b/main.c @@ -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[]);