From 2d9a77d91f961f737e220ff993511c84a3bfaeaa Mon Sep 17 00:00:00 2001 From: jjenista Date: Thu, 28 Jan 2010 00:32:26 +0000 Subject: [PATCH] alert user if allocating an SESE record fails --- Robust/src/Runtime/mlp_runtime.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Robust/src/Runtime/mlp_runtime.c b/Robust/src/Runtime/mlp_runtime.c index b3ab4120..bc4e2bcd 100644 --- a/Robust/src/Runtime/mlp_runtime.c +++ b/Robust/src/Runtime/mlp_runtime.c @@ -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; } -- 2.34.1