Commit 431f1b16 authored by Leslie Wade's avatar Leslie Wade

Fixed memory bug

parent 510f7123
......@@ -2373,8 +2373,8 @@ XLALDestroySimNeutronStarEOS(eos);
/* Checks if EOS allows for acausal speed of sound and unphysical maximum masses */
int LALInferenceEOSPhysicalCheck(LALInferenceVariables *params, ProcessParamsTable *commandLine){
int ret;
int ret;
LALSimNeutronStarEOS *eos=NULL;
LALSimNeutronStarFamily *fam=NULL;
......@@ -2518,8 +2518,6 @@ if(mass1_kg <= max_mass_kg && mass2_kg <= max_mass_kg && mass1_kg >= min_mass_kg
// Else fail
}else{
// Clean up
XLALDestroySimNeutronStarFamily(fam);
XLALDestroySimNeutronStarEOS(eos);
ret=XLAL_FAILURE;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment