Commit f5ea1c22 authored by Uwe Schulzweida's avatar Uwe Schulzweida
Browse files

vlistDestroy: fixed bug introduced in r984

parent 887a0cd5
......@@ -312,7 +312,7 @@ int vlistCreate(void)
void vlistDestroy(int vlistID)
{
vlist_t *vlistptr;
int nvars = vlistptr->nvars;
int nvars;
int varID;
vlistptr = vlist_to_pointer(vlistID);
......@@ -321,6 +321,8 @@ void vlistDestroy(int vlistID)
vlistDelAtts(vlistID, CDI_GLOBAL);
nvars = vlistptr->nvars;
for ( varID = 0; varID < nvars; varID++ )
{
if ( vlistptr->vars[varID].levinfo ) free(vlistptr->vars[varID].levinfo);
......
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