[Genabel-commits] r1034 - pkg/ProbABEL/src
noreply at r-forge.r-project.org
noreply at r-forge.r-project.org
Wed Nov 28 23:49:01 CET 2012
Author: lckarssen
Date: 2012-11-28 23:49:00 +0100 (Wed, 28 Nov 2012)
New Revision: 1034
Modified:
pkg/ProbABEL/src/main.cpp
pkg/ProbABEL/src/phedata.cpp
Log:
ProbABEL: Fixed memory leak when reading dose files in plain text format.
Modified: pkg/ProbABEL/src/main.cpp
===================================================================
--- pkg/ProbABEL/src/main.cpp 2012-11-28 12:34:05 UTC (rev 1033)
+++ pkg/ProbABEL/src/main.cpp 2012-11-28 22:49:00 UTC (rev 1034)
@@ -230,7 +230,7 @@
}
void create_header2(std::vector<std::ofstream*>& outfile, cmdvars& input_var,
- phedata phd, int interaction_cox)
+ phedata& phd, int interaction_cox)
{
create_start_of_header(outfile, input_var, phd);
*outfile[0] << input_var.getSep() << "beta_SNP_add"
Modified: pkg/ProbABEL/src/phedata.cpp
===================================================================
--- pkg/ProbABEL/src/phedata.cpp 2012-11-28 12:34:05 UTC (rev 1033)
+++ pkg/ProbABEL/src/phedata.cpp 2012-11-28 22:49:00 UTC (rev 1034)
@@ -231,7 +231,7 @@
{
// delete X;
// delete Y;
- // delete [] allmeasured;
- // delete [] model_terms;
- // delete [] idnames;
+ delete [] allmeasured;
+ delete [] model_terms;
+ delete [] idnames;
}
More information about the Genabel-commits
mailing list