Correct memory leak in the RTE cleanup
[ric-plt/lib/rmr.git] / src / rmr / si / src / si95 / siinit.c
index 80bfbdc..b297124 100644 (file)
@@ -62,8 +62,6 @@ extern struct ginfo_blk* SIinitialise( int opts )
                }
                memset( gptr->tp_map, 0, sizeof( struct tp_blk *) * MAX_FDS );
 
-               gptr->sierr = SI_ERR_TPORT;
-       
                gptr->cbtab = (struct callback_blk *) malloc(
                        (sizeof( struct callback_blk ) * MAX_CBS ) );
                if( gptr->cbtab != NULL ) {
@@ -76,8 +74,6 @@ extern struct ginfo_blk* SIinitialise( int opts )
                        free( gptr );
                        gptr = NULL;       //  dont allow them to continue 
                }
-
-               gptr->sierr = SI_OK;
        }                     //  end if gen infor block allocated successfully 
 
        
@@ -121,7 +117,7 @@ extern void SItp_stats( void *vgp ) {
 
        if( (gp = (struct ginfo_blk *) vgp) != NULL ) {
                for( tp = gp->tplist; tp != NULL; tp = tp->next ) {
-                       fprintf( stderr, "[DBUG] si95: tp: fd=%d sent=%lld rcvd=%lld qc=%lld\n", tp->fd, tp->sent, tp->rcvd, tp->qcount );
+                       rmr_vlog( RMR_VL_DEBUG, "si95: tp: fd=%d sent=%lld rcvd=%lld qc=%lld\n", tp->fd, tp->sent, tp->rcvd, tp->qcount );
                }
        }
 }