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
make it possible to free the storage content from the C code
[simgrid.git]
/
src
/
msg
/
msg_io.cpp
diff --git
a/src/msg/msg_io.cpp
b/src/msg/msg_io.cpp
index
bfb2f3d
..
b636be8
100644
(file)
--- a/
src/msg/msg_io.cpp
+++ b/
src/msg/msg_io.cpp
@@
-475,7
+475,7
@@
xbt_dict_t MSG_storage_get_content(msg_storage_t storage)
xbt_dict_t content_dict = xbt_dict_new_homogeneous(&free);
for (auto entry : *content) {
xbt_dict_t content_dict = xbt_dict_new_homogeneous(&free);
for (auto entry : *content) {
- sg_size_t* psize =
new sg_size_t
;
+ sg_size_t* psize =
static_cast<sg_size_t*>(malloc(sizeof(sg_size_t)))
;
*psize = entry.second;
xbt_dict_set(content_dict, entry.first.c_str(), psize, nullptr);
}
*psize = entry.second;
xbt_dict_set(content_dict, entry.first.c_str(), psize, nullptr);
}