X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/61427a88a76a2c2ef25d0d5b8132995c6f550e5c..5e472a6023eb14e7396b16fa4eb47c805d8f4acf:/examples/msg/synchro-semaphore/synchro-semaphore.c diff --git a/examples/msg/synchro-semaphore/synchro-semaphore.c b/examples/msg/synchro-semaphore/synchro-semaphore.c index d91e546767..f4312d8493 100644 --- a/examples/msg/synchro-semaphore/synchro-semaphore.c +++ b/examples/msg/synchro-semaphore/synchro-semaphore.c @@ -67,6 +67,7 @@ int main(int argc, char* argv[]) MSG_process_create_with_arguments("Bob", peer, NULL, h, 8, bobTimes); msg_error_t res = MSG_main(); + MSG_sem_destroy(sem); XBT_INFO("Finished\n"); return (res != MSG_OK); }