Commit cd39ac3 1 parent f0fda91 commit cd39ac3 Copy full SHA for cd39ac3
File tree 1 file changed +2
-1
lines changed
1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -135,7 +135,7 @@ namespace torali
135
135
boost::posix_time::ptime now = boost::posix_time::second_clock::local_time ();
136
136
std::cerr << ' [' << boost::posix_time::to_simple_string (now) << " ] " << " SV annotation" << std::endl;
137
137
138
- const faidx_t * fai = fai_load (c.genome .string ().c_str ());
138
+ faidx_t * fai = fai_load (c.genome .string ().c_str ());
139
139
for (int32_t refIndex=0 ; refIndex < (int32_t ) hdr[0 ]->n_targets ; ++refIndex) {
140
140
// Fetch breakpoints
141
141
typedef std::multimap<int32_t , int32_t > TBreakpointMap;
@@ -362,6 +362,7 @@ namespace torali
362
362
if (seq != NULL ) free (seq);
363
363
}
364
364
// Clean-up
365
+ fai_destroy (fai);
365
366
for (unsigned int file_c = 0 ; file_c < c.files .size (); ++file_c) {
366
367
bam_hdr_destroy (hdr[file_c]);
367
368
hts_idx_destroy (idx[file_c]);
You can’t perform that action at this time.
0 commit comments