From: Martin Quinson Date: Sun, 14 Aug 2016 20:45:31 +0000 (+0200) Subject: plug a memleak X-Git-Tag: v3_14~559 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/ed6366f679dcc83f61b89fa2182c0f5e44687347 plug a memleak --- 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;