Memory leak when using SQLParamData and SQLPutData - Mailing list pgsql-odbc

From Mihai Giurgeanu
Subject Memory leak when using SQLParamData and SQLPutData
Date
Msg-id 3607FFD4-9A1E-4481-8D34-68EEA4D8A34A@gmail.com
Whole thread Raw
Responses Re: Memory leak when using SQLParamData and SQLPutData
List pgsql-odbc
Hi,

When executing a prepared insert statement and using SQL_DATA_AT_EXEC parameters that will be sent with SQLParamData
andSQLPutData, the driver will leak memory for parameters. The memory will not be deallocated not even the handles are
freedand 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

pgsql-odbc by date:

Previous
From: "Inoue, Hiroshi"
Date:
Subject: Re: MS Access adds always actual day in time defined postgres column
Next
From: "Inoue, Hiroshi"
Date:
Subject: Re: Memory leak when using SQLParamData and SQLPutData