| From: | Mihai Giurgeanu <mihai(dot)giurgeanu(at)gmail(dot)com> |
|---|---|
| To: | pgsql-odbc(at)lists(dot)postgresql(dot)org |
| Subject: | Memory leak when using SQLParamData and SQLPutData |
| Date: | 2017-12-21 08:26:56 |
| Message-ID: | 3607FFD4-9A1E-4481-8D34-68EEA4D8A34A@gmail.com |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-odbc |
Hi,
When executing a prepared insert statement and using SQL_DATA_AT_EXEC parameters that will be sent with SQLParamData and SQLPutData, the driver will leak memory for parameters. The memory will not be deallocated not even the handles are freed and the program disconnects from the database.
I am attaching a small project to demonstrate the bug. You can also browse the project at https://hub.darcs.net/mihaigiurgeanu/psqlodbc-insert-leak
Thanks,
Mihai
| Attachment | Content-Type | Size |
|---|---|---|
| psqlodbc-insert-leak.tar.gz | application/x-gzip | 1.7 KB |
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Inoue, Hiroshi | 2017-12-21 12:50:52 | Re: Memory leak when using SQLParamData and SQLPutData |
| Previous Message | Inoue, Hiroshi | 2017-12-16 01:00:46 | Re: MS Access adds always actual day in time defined postgres column |