X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=src%2Frmr%2Fsi%2Fsrc%2Fsi95%2Fsiwait.c;h=c14c5a9f40f4274244d513a522b7cb23c642c9e9;hb=9c2f0c74adb03a21646742702813b6ba4a4ae288;hp=6a72b300190f6cc08185c5af0354f2eb746c1c65;hpb=3d7285ec4c96724b64968f46c2075b77e8d08543;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 6a72b30..c14c5a9 100644 --- a/src/rmr/si/src/si95/siwait.c +++ b/src/rmr/si/src/si95/siwait.c @@ -72,11 +72,13 @@ extern int SIwait( struct ginfo_blk *gptr ) { ibuf = (char *) malloc( 2048 ); if( gptr->flags & GIF_SHUTDOWN ) { // cannot do if we should shutdown + free( ibuf ); return SI_ERROR; // so just get out } 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" ); + free( ibuf ); return SI_ERROR; }