Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.tools -> OCIParamGet memory leak
Assuming I have created a statement and executed it, should the following loop leak memory?
OCIParam *mypard=0; ub4 counter; sb4 parm_status;
counter = 1;
for (int xx=0;xx<100000;++xx) {
parm_status = OCIParamGet(sp, OCI_HTYPE_STMT, errhp, reinterpret_cast<void**>(&mypard),
(ub4) counter);
}
I leak a few MBs of memory with the above. I am using the OCI library provided with Oracle 8.1.6 for Linux. Can someone clue me in on why this is happening?
Sent via Deja.com http://www.deja.com/
Before you buy.
Received on Wed Oct 25 2000 - 04:27:05 CDT
![]() |
![]() |