Skip to content
Snippets Groups Projects
Commit 2719518c authored by Duncan Brown's avatar Duncan Brown
Browse files

added protection so as not to free null pointer if template generation fails

parent 49ebc61e
No related branches found
Tags PRE-E7-011222
No related merge requests found
......@@ -84,7 +84,10 @@ LALFindChirpCreateInspiralBank (
&(params->numCoarse), *coarseBankIn );
BEGINFAIL( status )
{
LALFree( coarseList );
if ( coarseList )
{
LALFree( coarseList );
}
}
ENDFAIL( status );
......@@ -198,7 +201,10 @@ LALFindChirpCreateInspiralBank (
BEGINFAIL( status )
{
LALFree( coarseList );
LALFree( fineList );
if ( fineList )
{
LALFree( fineList );
}
LALFree( fineBankIn );
TRY( LALFindChirpDestroyInspiralBank( status->statusPtr, bankHead ),
status );
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment