From: Narasimha S. <nsh...@us...> - 2012-03-08 23:32:09
|
Update of /cvsroot/sblim/sfcb In directory vz-cvs-3.sog:/tmp/cvs-serv1109 Modified Files: brokerUpc.c Log Message: [3497209] oom panic: out of memory using fsp indprovider Index: brokerUpc.c =================================================================== RCS file: /cvsroot/sblim/sfcb/brokerUpc.c,v retrieving revision 1.36 retrieving revision 1.37 diff -u -d -r1.36 -r1.37 --- brokerUpc.c 1 Mar 2012 17:46:40 -0000 1.36 +++ brokerUpc.c 8 Mar 2012 23:32:07 -0000 1.37 @@ -121,6 +121,9 @@ NativeSelectExp *se=activFilters; while (se) { + + void *hc = markHeap(); /* 3497209:78376 */ + /* Check for matching FROM class */ for (x=0; x<se->qs->fcNext; x++) { if (CMClassPathIsA(mb, indop, se->qs->fClasses[x], &st)) { @@ -128,6 +131,9 @@ break; } } + + releaseHeap(hc); /* 3497209:78376 - relase objs that are no longer reqd */ + if (classMatch && se->exp.ft->evaluate(&se->exp,ind,&st)) { /*apply a propertyfilter in case the query is not "SELECT * FROM ..." */ if(se->qs->spNames && se->qs->spNames[0]) { @@ -145,6 +151,8 @@ #endif ); CBInvokeMethod(mb,ctx,op,"_deliver",in,NULL,&st); + CMRelease(op); /* 3497209 */ + CMRelease(in); } classMatch = 0; /* 3483200 */ se=se->next; |