X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/13fb4af932a02ea0bd4293d1e55ac071de326f80..611d822b02f836d7abe031cced6adc4281ef4356:/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..67767ca93e 100644 --- a/examples/msg/synchro-semaphore/synchro-semaphore.c +++ b/examples/msg/synchro-semaphore/synchro-semaphore.c @@ -1,4 +1,4 @@ -/* Copyright (c) 2013-2015. The SimGrid Team. +/* Copyright (c) 2013-2018. The SimGrid Team. * All rights reserved. */ /* This program is free software; you can redistribute it and/or modify it @@ -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); }