--- MRes.c 2010-02-19 21:14:21.000000000 +0100 +++ MRes.c.new 2011-02-17 11:23:08.362570247 +0100 @@ -7255,12 +7255,22 @@ if (CRE == NULL) { - DBG(4,fCORE) DPrint("ALERT: cannot allocate memory in %s\n", + DBG(4,fCORE) DPrint("ALERT: cannot allocate memory for CRE in %s\n", FName); return(FAILURE); } + if (JRE == NULL) + { + DBG(4,fCORE) DPrint("ALERT: cannot allocate memory for JRE in %s\n", + FName); + + return(FAILURE); + } + + + for (nindex = 0;nindex < MAX_MNODE;nindex++) { N = MNode[nindex];