Ensure RT incremental update not applied early
[ric-plt/lib/rmr.git] / src / rmr / si / src / rmr_si.c
index b8bb2a0..8f88cf8 100644 (file)
@@ -733,7 +733,7 @@ static void* init( char* uproto_port, int def_msg_size, int flags ) {
 
        if( (tok = getenv( ENV_WARNINGS )) != NULL ) {
                if( *tok == '1' ) {
-                       ctx->flags |= CTXFL_WARN;                                       // turn on some warnings (not all, just ones that shouldn't impact performance)
+                       ctx->flags |= CFL_WARN;                                 // turn on some warnings (not all, just ones that shouldn't impact performance)
                }
        }
 
@@ -884,6 +884,10 @@ extern void rmr_close( void* vctx ) {
                return;
        }
 
+       if( ctx->seed_rt_fname != NULL ) {
+               free( ctx->seed_rt_fname );
+       }
+
        ctx->shutdown = 1;
 
        SItp_stats( ctx->si_ctx );                      // dump some interesting stats