X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=src%2Frmr%2Fsi%2Fsrc%2Fsi95%2Fsiwait.c;h=291b8aad807b515052b3eede2e3355c2bd46da6f;hb=f8623e7dc17184b3359a5de8a81a54bb963469c7;hp=c14c5a9f40f4274244d513a522b7cb23c642c9e9;hpb=9c2f0c74adb03a21646742702813b6ba4a4ae288;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 c14c5a9..291b8aa 100644 --- a/src/rmr/si/src/si95/siwait.c +++ b/src/rmr/si/src/si95/siwait.c @@ -69,7 +69,10 @@ extern int SIwait( struct ginfo_blk *gptr ) { char *buf; char *ibuf; - ibuf = (char *) malloc( 2048 ); + if( ( ibuf = (char *) malloc( 2048 ) ) == NULL ) { + rmr_vlog( RMR_VL_WARN, "ibuf malloc fail\n" ); + return SI_ERROR; + } if( gptr->flags & GIF_SHUTDOWN ) { // cannot do if we should shutdown free( ibuf );