Commit 2b8896fb authored by Uwe Schulzweida's avatar Uwe Schulzweida
Browse files

Merge branch 'develop' of git.mpimet.mpg.de:libcdi into develop

parents efde8f52 2dedb75e
......@@ -979,8 +979,16 @@ void cdiStreamCloseDefaultDelegate(stream_t *streamptr, int recordBufIsToBeDelet
cdfClose(fileID);
if (streamptr->ntsteps == 0)
{
Free(streamptr->tsteps[0].records);
Free(streamptr->tsteps[0].recIDs);
if ( streamptr->tsteps[0].records )
{
Free(streamptr->tsteps[0].records);
streamptr->tsteps[0].records = NULL;
}
if ( streamptr->tsteps[0].recIDs )
{
Free(streamptr->tsteps[0].recIDs);
streamptr->tsteps[0].recIDs = NULL;
}
}
break;
}
......
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