X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/3b578f744282579b374a1461561b41f2d8b2684b..418bfdefc990711913564d0bb4c58a1dd9d78c30:/examples/msg/io/storage.c diff --git a/examples/msg/io/storage.c b/examples/msg/io/storage.c index eb6abcc786..9f2a266758 100644 --- a/examples/msg/io/storage.c +++ b/examples/msg/io/storage.c @@ -101,9 +101,10 @@ static int host(int argc, char *argv[]){ XBT_INFO("Get data: '%s'", data); - MSG_storage_set_data(storage,strdup("Some user data")); + MSG_storage_set_data(storage, xbt_strdup("Some user data")); data = MSG_storage_get_data(storage); XBT_INFO("Set and get data: '%s'", data); + xbt_free(data); xbt_free(storage_name);