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

Remap: fixed memory leak for r=max_remaps-1

parent 0bf44a1c
......@@ -3,6 +3,10 @@
* using CDI library version 1.7.0
* Version 1.7.0 released
2015-05-28 Uwe Schulzweida
* Remap: fixed memory leak for r=max_remaps-1
2015-05-26 Uwe Schulzweida
* New operator: vertstd1 - Vertical standard deviation [Divisor is (n-1)]
......
......@@ -1008,6 +1008,12 @@ void *Remap(void *argument)
else
{
r = nremaps - 1;
remapVarsFree(&remaps[r].vars);
remapGridFree(&remaps[r].src_grid);
remapGridFree(&remaps[r].tgt_grid);
remaps[r].gridID = -1;
remaps[r].gridsize = 0;
remaps[r].nmiss = 0;
}
if ( remaps[r].gridID != gridID1 )
......
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