X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=src%2Frmr%2Fsi%2Fsrc%2Fsi95%2Fsibldpoll.c;h=5b50fcc0dda0bcb3ba9c8f70e492914b75955774;hb=009378503e4621ab53f0839a409563b4a03e100f;hp=6ad26ea8b0d6013acd4e3a40782e0226e585a622;hpb=bc3de17c3b959fcc6a5ba42f5d3b09402bf89687;p=ric-plt%2Flib%2Frmr.git diff --git a/src/rmr/si/src/si95/sibldpoll.c b/src/rmr/si/src/si95/sibldpoll.c index 6ad26ea..5b50fcc 100644 --- a/src/rmr/si/src/si95/sibldpoll.c +++ b/src/rmr/si/src/si95/sibldpoll.c @@ -52,7 +52,10 @@ extern void SIbldpoll( struct ginfo_blk* gptr ) { for( tpptr = gptr->tplist; tpptr != NULL; tpptr = nextb ) { nextb = tpptr->next; if( tpptr->flags & TPF_DELETE ) { - SIterm( gptr, tpptr ); + if( tpptr->fd >= 0 ) { // wasn't closed for some reason + SIterm( gptr, tpptr ); + } + SIrm_tpb( gptr, tpptr ); // safe to remove the block from the list in this thread } else { if( tpptr->fd >= 0 ) { // if valid file descriptor if( tpptr->fd >= gptr->fdcount ) {