X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;ds=sidebyside;f=src%2Frmr%2Fsi%2Fsrc%2Fsi95%2Fsiwait.c;h=683bc5ed3042e7b29f4b11cb394c192d91fde390;hb=9819507472caa5906a7047b38f50a94d1931ea26;hp=3a9a8ed25c29ee5516de37a9eb330d22c43fb685;hpb=11838bcf76f3614384459cb56e2ce80dea788cef;p=ric-plt%2Flib%2Frmr.git diff --git a/src/rmr/si/src/si95/siwait.c b/src/rmr/si/src/si95/siwait.c index 3a9a8ed..683bc5e 100644 --- a/src/rmr/si/src/si95/siwait.c +++ b/src/rmr/si/src/si95/siwait.c @@ -70,8 +70,6 @@ extern int SIwait( struct ginfo_blk *gptr ) { struct tp_blk *nextone= NULL; // point at next block to process in loop int pstat = 0; // poll status struct timeval timeout; // delay to use on select call - char *buf = NULL; - char *ibuf = NULL; if( gptr->magicnum != MAGICNUM ) { // if not a valid ginfo block rmr_vlog( RMR_VL_CRIT, "SI95: wait: bad global info struct magic number is wrong\n" ); @@ -82,11 +80,6 @@ extern int SIwait( struct ginfo_blk *gptr ) { return SI_ERROR; // so just get out } - if( ( ibuf = (char *) malloc( 2048 ) ) == NULL ) { - rmr_vlog( RMR_VL_WARN, "ibuf malloc fail\n" ); - return SI_ERROR; - } - do { // spin until a callback says to stop (likely never) timeout.tv_sec = 0; // must be reset on every call! timeout.tv_usec = SI_SELECT_TIMEOUT; @@ -147,7 +140,6 @@ extern int SIwait( struct ginfo_blk *gptr ) { } } while( gptr->tplist != NULL && !(gptr->flags & GIF_SHUTDOWN) ); - free( ibuf ); if( gptr->tplist == NULL ) // indicate all fds closed if( gptr->flags & GIF_SHUTDOWN ) { // we need to stop for some reason