Urgent: Memory Leak through OCIServerAttach
Hi All,
I am getting memory leak through OCIServerAttach. My application is multithreaded and it is connecting to the database many times through diffirent child process.
As it requires an uninitialized server handle, which gets initialized by this call.
Can anybody help me in solving this.
I am using purify: Thestack trace of the leak is pasted here.
MLK: 196 bytes leaked in 7 blocks
* This memory was allocated from:
malloc [rtlib.o]
nlnvmal [nlnv.c]
nlnvbaloc [nlnv.c]
nlnvpbl [nlnv.c]
nlnvpva [nlnv.c]
nlnvpbi [nlnv.c]
nlnvpds [nlnv.c]
nlnvcrb [nlnv.c]
nlnvcpb [nlnvcpb.c]
nlnvibb [nlnvibb.c]
nlad_use_node [nlad.c]
nladget [nlad.c]
nscall1 [nscall.c]
nscall [nscall.c]
niotns [nio.c]
nigcall [nig.c]
osncon [nigcon.c]
kpuadef [kpuadef.c]
upiini [upiprv.c]
upiah0 [upicdc.c]
kpuatch [kpu.c]
OCIServerAttach [oci8.c]
DB_connect [abc_common.c:2127]
thrStatsDaemon [abc_d.c:883]
threadstart [libthread.so.1]
* Block of 28 bytes (7 times); last block at 0x2106c0
Thanks and regards,
Kshitij