diff --git a/src/Thread.c b/src/Thread.c index fa8722dc..db075e88 100644 --- a/src/Thread.c +++ b/src/Thread.c @@ -360,8 +360,8 @@ int Thread_destroy_evt(evt_type evt) #else rc = pthread_mutex_destroy(&evt->mutex); int rcc = pthread_cond_destroy(&evt->cond); - if (rcc != 0) - rc = rcc; + if (rcc != 0) + rc = rcc; free(evt); #endif FUNC_EXIT_RC(rc);