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

Changed free() to Free().

parent ef8d1c7a
......@@ -47,7 +47,7 @@ int grbDecode(int filetype, int memtype, void *gribbuffer, int gribsize, void *d
float *dataf = (float*) data;
double *datad = (double*) datap;
for ( size_t i = 0; i < datasize; ++i ) dataf[i] = (float) datad[i];
free((void*)datap);
Free((void*)datap);
}
}
#else
......
......@@ -53,7 +53,7 @@ size_t grbEncode(int filetype, int memtype, int varID, int levelID, int vlistID,
(long) datasize, datap, nmiss, gribbuffer, &gribbuffersize,
comptype, gribContainer);
if ( memtype == MEMTYPE_FLOAT ) free((void*)datap);
if ( memtype == MEMTYPE_FLOAT ) Free((void*)datap);
}
#else
{
......
......@@ -614,7 +614,7 @@ void vlistCopyFlag(int vlistID2, int vlistID1)
ubounds = lbounds + nlevs2;
double *lbounds1 = (double *) Malloc(2 * (size_t)nlevs * sizeof (double)),
*ubounds1 = lbounds1 + nlevs;
*ubounds1 = lbounds1 + nlevs;
zaxisInqLbounds(zaxisID, lbounds1);
zaxisInqUbounds(zaxisID, ubounds1);
......@@ -632,7 +632,7 @@ void vlistCopyFlag(int vlistID2, int vlistID1)
}
int zaxisID2 = vlist_generate_zaxis(vlistID2, zaxisType, nlevs2, levels, lbounds, ubounds, nvct, vct);
free(levels);
Free(levels);
Free(lbounds);
zaxisInqName(zaxisID, ctemp);
......
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