From 4b89732891979b045102320d32bbab5826aa1ac7 Mon Sep 17 00:00:00 2001 From: Martin Quinson Date: Fri, 24 Feb 2017 03:03:20 +0100 Subject: [PATCH] plug an obvious memleak --- examples/msg/synchro-semaphore/synchro-semaphore.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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"); -- 2.20.1