Skip to content

Commit 3145ff3

Browse files
committed
fix AddressSanitizer issue
1 parent 80b2285 commit 3145ff3

File tree

4 files changed

+6
-4
lines changed

4 files changed

+6
-4
lines changed

DESCRIPTION

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Package: vcfppR
22
Title: Rapid Manipulation of the Variant Call Format (VCF)
3-
Version: 0.4.3
3+
Version: 0.4.4
44
Authors@R: c(
55
person("Zilong", "Li", , "[email protected]", role = c("aut", "cre"),
66
comment = c(ORCID = "0000-0001-5859-2078")),

cleanup.win

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
#!/bin/sh
22

3-
rm -f src/htslib-1.18/config.h src/*.o src/*.so src/*.dll src/*.dylib
4-
cd src/htslib-1.18/ && make clean && cd -
3+
HTSLIB_DIR=htslib-1.19.1
4+
rm -f src/${HTSLIB_DIR}/config.h src/*.o src/*.so src/*.dll src/*.dylib
5+
cd src/${HTSLIB_DIR}/ && make clean && cd -

src/Makevars.win

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
HTSLIB_DIR=htslib-1.18
1+
HTSLIB_DIR=htslib-1.19.1
22
PKG_CPPFLAGS=-I. -I${HTSLIB_DIR} -D_FILE_OFFSET_BITS=64
33
PKG_LIBS=${HTSLIB_DIR}/libhts.a
44

src/vcfpp.h

+1
Original file line numberDiff line numberDiff line change
@@ -1582,6 +1582,7 @@ class BcfWriter
15821582
str.push_back('\0'); // don't forget string has no \0;
15831583
kstring_t s = {vcfline.length(), vcfline.length(), &str[0]}; // kstring
15841584
ret = vcf_parse1(&s, header.hdr, b.get());
1585+
free(s.s);
15851586
if(ret < 0) hts_log_debug("the ret is %i ", ret);
15861587
if(ret < 0) throw std::runtime_error("error parsing: " + vcfline + "\n");
15871588
if(b->errcode == BCF_ERR_CTG_UNDEF)

0 commit comments

Comments
 (0)