X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/11ae3bfac7b4c85a23e220b9d0755449a622a37b..ed6366f679dcc83f61b89fa2182c0f5e44687347:/examples/s4u/io/s4u_io.cpp diff --git a/examples/s4u/io/s4u_io.cpp b/examples/s4u/io/s4u_io.cpp index e9ebf578de..d5c24cf5b2 100644 --- 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;