From: Першин Юрий Петрович <pershin@prosoftsystems.ru>
To: pgsql-odbc@postgresql.org <pgsql-odbc@postgresql.org>
Subject: RE: windows AppVerifier reports memory leak after strdup (psqlodbc35w.dll ver 13.00)
Date: Sat, 19 Dec 2020 00:22:48 +0000
Message-ID: <194f365f33f640fd9397c4608819e06f@prosoftsystems.ru> (raw)
In-Reply-To: <d825bbded66e40439f53e60ee0686bc9@prosoftsystems.ru>
References: <d825bbded66e40439f53e60ee0686bc9@prosoftsystems.ru>
Steps to reproduce subj:
1. Add wscript.exe to AppVerifier with Basics.Leak check
2. Create file pg_leak.vbs with the following code (replace YOUR_CONNECTION_STRING with yours):
Set c = CreateObject("ADODB.Connection")
c.Open "YOUR_CONNECTION_STRING"
Set cmd = CreateObject("ADODB.Command")
Set cmd.ActiveConnection = c
cmd.ActiveConnection.CursorLocation = 3 'clUseClient
cmd.CommandText = "SELECT COUNT(*) FROM INFORMATION_SCHEMA.TABLES"
cmd.CommandType = 1 'adCmdText
Set r = CreateObject("ADODB.Recordset")
r.Open cmd, , 1, 3, 1 'ctKeySet, ltOptimistic, adCmdText
MsgBox r.Fields(0).Value
3. Execute wscript.exe pg_leak.vbs
4. Launch AppVerifier.exe and see if it was happy with last wscript.exe session (was not happy)
5. Comment out line about CursorLocation and repeat steps 3-4. You should see the subj just disappeared.
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-odbc@postgresql.org
Cc: pershin@prosoftsystems.ru
Subject: Re: windows AppVerifier reports memory leak after strdup (psqlodbc35w.dll ver 13.00)
In-Reply-To: <194f365f33f640fd9397c4608819e06f@prosoftsystems.ru>
References: <d825bbded66e40439f53e60ee0686bc9@prosoftsystems.ru> <194f365f33f640fd9397c4608819e06f@prosoftsystems.ru>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox