Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.tools -> OCIParamGet memory leak

OCIParamGet memory leak

From: <dberton_at_my-deja.com>
Date: Wed, 25 Oct 2000 09:27:05 GMT
Message-ID: <8t6913$sv1$1@nnrp1.deja.com>

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

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US