Re: [BUGS] PostgreSQL 7.0.3: Memory leak in ESQL library

2001-01-02 Thread Bruce Momjian
Yes, I see the problem you reported. Here is the patch I have applied. Thanks. > Hello, > > I've found a memory leak in libecpg of PostgreSQL 7.0.3. > The leak is caused by the memory allocation in > src/interfaces/ecpg/lib/execute.c in line 669 which is never freed. > Adding a "free(array_que

[BUGS] PostgreSQL 7.0.3: Memory leak in ESQL library

2001-01-02 Thread Thorsten Knabe
Hello, I've found a memory leak in libecpg of PostgreSQL 7.0.3. The leak is caused by the memory allocation in src/interfaces/ecpg/lib/execute.c in line 669 which is never freed. Adding a "free(array_query);" after PQexec in line 671 seems to fix the leak. Regards Thorsten -- E-M