Re: ESQL Memory Leak
Posted in 1993
Topics: Connectivity: ESQL/C, 4GL & Embedded SQL
pwalden@hpcc01.corp.hp.com (Philip Walden) writes: >The bug# is 14199. >Apparently, the declare and describe statements allocate space which is >not de-allocated by the free statement. The problem is in both 4.0 and >5.0. It is a minor problem in 4.X where cursors are static structures >declared in the user's code, but an aggravated problem on 5.X where >cursors are pointers to structures allocated by Informix functions (At >least this is what I have deduced using a memory leak checker). >There is no work-around I am told. Whats the problem ? Do you use ESQL-C ? If, then free the sqlda & other structures yourself and then set them to NULL, so that the library won't free them again. Ciao Christoph -- ------------------------------------------------------------------------------ fighting for peace is like fucking for virginity ------------------------------------------------------------------------------