Skip to content

Commit

Permalink
upgrade to vcfpp.h v0.3.8
Browse files Browse the repository at this point in the history
  • Loading branch information
Zilong-Li committed Apr 8, 2024
1 parent 53ef4aa commit 306127c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/vcfpp.h
Original file line number Diff line number Diff line change
Expand Up @@ -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.
******************************************************************************/
Expand Down Expand Up @@ -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");
}
}
Expand Down

0 comments on commit 306127c

Please sign in to comment.