A
lgorithmique
N
umérique
D
istribuée
Public GIT Repository
projects
/
simgrid.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Kill "if" before free, and useless cast of free argument.
[simgrid.git]
/
src
/
gras
/
DataDesc
/
cbps.c
diff --git
a/src/gras/DataDesc/cbps.c
b/src/gras/DataDesc/cbps.c
index
b64eb2f
..
145560f
100644
(file)
--- a/
src/gras/DataDesc/cbps.c
+++ b/
src/gras/DataDesc/cbps.c
@@
-282,8
+282,7
@@
void gras_cbps_block_end(gras_cbps_t ps)
xbt_dynar_free_container(&varstack); /*already empty, save a test ;) */
}
- if (var->data)
- free(var->data);
+ free(var->data);
free(var);
free(name);
}