Skip to content

Commit

Permalink
Memory leaks and violations removed from the VCF statistics tool
Browse files Browse the repository at this point in the history
  • Loading branch information
Cristina Yenyxe Gonzalez Garcia committed Nov 7, 2013
1 parent 0769140 commit fc1864c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib
3 changes: 2 additions & 1 deletion src/vcf-tools/stats/stats_runner.c
Original file line number Diff line number Diff line change
Expand Up @@ -375,7 +375,8 @@ int run_stats(shared_options_data_t *shared_options_data, stats_options_data_t *
if (ped_file) {
for (int i = 0; i < num_phenotypes; i++) {
if (phenotype_fd[i]) { fclose(phenotype_fd[i]); }
free(phenotype_fd);
// I don't understand why this causes a double free
//if (phenotype_fd) { free(phenotype_fd); }
}
}

Expand Down

0 comments on commit fc1864c

Please sign in to comment.