Commit 0673a350 authored by Uwe Schulzweida's avatar Uwe Schulzweida
Browse files

cleanup memory for streamptr->vars[varID].level

parent d4147868
...@@ -6051,9 +6051,7 @@ void define_all_vars(stream_t *streamptr, int vlistID, int instID, int modelID, ...@@ -6051,9 +6051,7 @@ void define_all_vars(stream_t *streamptr, int vlistID, int instID, int modelID,
vlistDefVarChunkType(vlistID, varID, ncvars[ncvarid].chunktype); vlistDefVarChunkType(vlistID, varID, ncvars[ncvarid].chunktype);
#endif #endif
streamptr->vars[varID1].level = NULL;
streamptr->vars[varID1].defmiss = 0; streamptr->vars[varID1].defmiss = 0;
streamptr->vars[varID1].nlevs = zaxisInqSize(ncvars[ncvarid].zaxisID);
streamptr->vars[varID1].ncvarid = ncvarid; streamptr->vars[varID1].ncvarid = ncvarid;
vlistDefVarName(vlistID, varID, ncvars[ncvarid].name); vlistDefVarName(vlistID, varID, ncvars[ncvarid].name);
......
...@@ -23,8 +23,6 @@ void streamvar_init_entry(stream_t *streamptr, int varID) ...@@ -23,8 +23,6 @@ void streamvar_init_entry(stream_t *streamptr, int varID)
streamptr->vars[varID].gridID = CDI_UNDEFID; streamptr->vars[varID].gridID = CDI_UNDEFID;
streamptr->vars[varID].zaxisID = CDI_UNDEFID; streamptr->vars[varID].zaxisID = CDI_UNDEFID;
streamptr->vars[varID].tsteptype = CDI_UNDEFID; streamptr->vars[varID].tsteptype = CDI_UNDEFID;
streamptr->vars[varID].level = NULL;
streamptr->vars[varID].nlevs = 0;
} }
static static
......
Supports Markdown
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