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
plug a memleak
[simgrid.git]
/
examples
/
s4u
/
io
/
s4u_io.cpp
diff --git
a/examples/s4u/io/s4u_io.cpp
b/examples/s4u/io/s4u_io.cpp
index
e9ebf57
..
d5c24cf
100644
(file)
--- a/
examples/s4u/io/s4u_io.cpp
+++ b/
examples/s4u/io/s4u_io.cpp
@@
-66,6
+66,7
@@
public:
// Test attaching some user data to the file
file->setUserdata(xbt_strdup("777"));
XBT_INFO("User data attached to the file: %s", (char*)file->userdata());
+ xbt_free(file->userdata());
// Close the file
delete file;