-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix leaks in getFORMAT with vector<string>
- Loading branch information
Showing
3 changed files
with
24 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
* @file https://github.com/Zilong-Li/vcfpp/vcfpp.h | ||
* @author Zilong Li | ||
* @email [email protected] | ||
* @version v0.3.7 | ||
* @version v0.3.8 | ||
* @breif a single C++ file for manipulating VCF | ||
* Copyright (C) 2022-2023.The use of this code is governed by the LICENSE file. | ||
******************************************************************************/ | ||
|
@@ -648,12 +648,12 @@ class BcfRecord | |
// Ugly: GT field is considered to be a string by the VCF header but BCF represents it as INT. | ||
v.emplace_back(dst[i]); | ||
}; | ||
free(dst); | ||
free(dst[0]); free(dst); | ||
return true; | ||
} | ||
else | ||
{ | ||
free(dst); | ||
free(dst[0]); free(dst); | ||
throw std::runtime_error("couldn't parse the " + tag + " format of this variant.\n"); | ||
} | ||
} | ||
|