From ed6366f679dcc83f61b89fa2182c0f5e44687347 Mon Sep 17 00:00:00 2001 From: Martin Quinson Date: Sun, 14 Aug 2016 22:45:31 +0200 Subject: [PATCH 1/1] plug a memleak --- examples/s4u/io/s4u_io.cpp | 1 + 1 file changed, 1 insertion(+) 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; -- 2.20.1