PQescapeBytea on Win32

From: "Key88 SF" <key88sf(at)hotmail(dot)com>
To: pgsql-hackers(at)postgresql(dot)org
Subject: PQescapeBytea on Win32
Date: 2003-03-18 04:49:48
Message-ID: F159qHSgNZuILS94O9J00042a23@hotmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers


Hi - there is a problem with PQescapeBytea for Win32. Since libpq is a DLL,
all memory allocated from within the DLL needs to be freed from within the
dll.

PQescapeBytea allocates memory, but there is no function call back into the
DLL to free this memory. This causes heap corruption when the main program
tries to free the memory itself. The alternative is to just leak the memory
and never free it. Also bad....

-Dave Brown
key88sf(at)hotmail(dot)com

_________________________________________________________________
Add photos to your messages with MSN 8. Get 2 months FREE*.
http://join.msn.com/?page=features/featuredemail

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Bruce Momjian 2003-03-18 05:01:38 Re: PQescapeBytea on Win32
Previous Message Bruce Momjian 2003-03-18 04:44:33 Re: [HACKERS] SQL99 ARRAY support proposal