alert user if allocating an SESE record fails
authorjjenista <jjenista>
Thu, 28 Jan 2010 00:32:26 +0000 (00:32 +0000)
committerjjenista <jjenista>
Thu, 28 Jan 2010 00:32:26 +0000 (00:32 +0000)
Robust/src/Runtime/mlp_runtime.c

index b3ab4120555cbc6a15b2dadf5a6ba4641d4b7145..bc4e2bcd2255bc7aab05ea50366c3019d3e9bcd0 100644 (file)
@@ -22,6 +22,10 @@ __thread SESEcommon_p seseCaller;
 
 void* mlpAllocSESErecord( int size ) {
   void* newrec = RUNMALLOC( size );  
+  if( newrec == 0 ) {
+    printf( "mlpAllocSESErecord did not obtain memory!\n" );
+    exit( -1 );
+  }
   return newrec;
 }