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
/
simix
/
smx_io.c
diff --git
a/src/simix/smx_io.c
b/src/simix/smx_io.c
index
10b39e9
..
969991b
100644
(file)
--- a/
src/simix/smx_io.c
+++ b/
src/simix/smx_io.c
@@
-201,11
+201,9
@@
int SIMIX_file_unlink(smx_process_t process, smx_file_t fd)
sg_host_name(host));
}
sg_host_name(host));
}
- if (surf_workstation_unlink(host, fd->surf_file)){
- xbt_free(fd);
- return 1;
- } else
- return 0;
+ int res = surf_workstation_unlink(host, fd->surf_file);
+ xbt_free(fd);
+ return !!res;
}
sg_size_t SIMIX_pre_file_get_size(smx_simcall_t simcall, smx_file_t fd)
}
sg_size_t SIMIX_pre_file_get_size(smx_simcall_t simcall, smx_file_t fd)