From: Martin Quinson Date: Fri, 24 Feb 2017 02:03:20 +0000 (+0100) Subject: plug an obvious memleak X-Git-Tag: v3_15~300 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/4b89732891979b045102320d32bbab5826aa1ac7 plug an obvious memleak --- diff --git a/examples/msg/synchro-semaphore/synchro-semaphore.c b/examples/msg/synchro-semaphore/synchro-semaphore.c index d62925d773..aa8d556631 100644 --- a/examples/msg/synchro-semaphore/synchro-semaphore.c +++ b/examples/msg/synchro-semaphore/synchro-semaphore.c @@ -63,8 +63,8 @@ int main(int argc, char* argv[]) bobTimes[7] = xbt_strdup("5"); bobTimes[8] = NULL; - MSG_process_create_with_arguments(xbt_strdup("Alice"), peer, NULL, h, 8, aliceTimes); - MSG_process_create_with_arguments(xbt_strdup("Bob"), peer, NULL, h, 8, bobTimes); + MSG_process_create_with_arguments("Alice", peer, NULL, h, 8, aliceTimes); + MSG_process_create_with_arguments("Bob", peer, NULL, h, 8, bobTimes); msg_error_t res = MSG_main(); XBT_INFO("Finished\n");