X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/13fb4af932a02ea0bd4293d1e55ac071de326f80..84e634fed3de105f1fe3e1e60000a64c93e9098b:/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); }