Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
mpim-sw
libcdi
Commits
d1f48101
Commit
d1f48101
authored
Sep 06, 2016
by
Uwe Schulzweida
Browse files
Changed free() to Free().
parent
ef8d1c7a
Changes
3
Hide whitespace changes
Inline
Side-by-side
src/grb_read.c
View file @
d1f48101
...
...
@@ -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
];
f
ree
((
void
*
)
datap
);
F
ree
((
void
*
)
datap
);
}
}
#else
...
...
src/grb_write.c
View file @
d1f48101
...
...
@@ -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
)
f
ree
((
void
*
)
datap
);
if
(
memtype
==
MEMTYPE_FLOAT
)
F
ree
((
void
*
)
datap
);
}
#else
{
...
...
src/vlist.c
View file @
d1f48101
...
...
@@ -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
);
f
ree
(
levels
);
F
ree
(
levels
);
Free
(
lbounds
);
zaxisInqName
(
zaxisID
,
ctemp
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment