RIC-939 : Fixes for static error checks
[ric-plt/lib/rmr.git] / src / rmr / si / src / rmr_si.c
index bd858de..52007fc 100644 (file)
@@ -796,6 +796,7 @@ static void* init( char* uproto_port, int def_msg_size, int flags ) {
                return init_err( "unable to allocate ep hash\n", ctx, proto_port, ENOMEM );
        }
 
+       pthread_mutex_destroy(ctx->rtgate);
        ctx->rtable = rt_clone_space( ctx, NULL, NULL, 0 );     // create an empty route table so that wormhole/rts calls can be used
        if( flags & RMRFL_NOTHREAD ) {                                          // no thread prevents the collector start for very special cases
                ctx->rtable_ready = 1;                                                  // route based sends will always fail, but rmr is ready for the non thread case