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
Fix memory leak on file_unlink.
[simgrid.git]
/
src
/
surf
/
workstation_interface.cpp
diff --git
a/src/surf/workstation_interface.cpp
b/src/surf/workstation_interface.cpp
index
ba19f66
..
f37bff3
100644
(file)
--- a/
src/surf/workstation_interface.cpp
+++ b/
src/surf/workstation_interface.cpp
@@
-284,8
+284,8
@@
int Workstation::unlink(surf_file_t fd) {
// Remove the file from storage
xbt_dict_remove(st->p_content, fd->name);
- free(fd->name);
- free(fd->mount);
+
xbt_
free(fd->name);
+
xbt_
free(fd->mount);
xbt_free(fd);
return MSG_OK;
}