Re: PQescapeBytea on Win32

Поиск
Список
Период
Сортировка
От Bruce Momjian
Тема Re: PQescapeBytea on Win32
Дата
Msg-id 200303180501.h2I51cW03568@candle.pha.pa.us
обсуждение исходный текст
Ответ на PQescapeBytea on Win32  ("Key88 SF" <key88sf@hotmail.com>)
Список pgsql-hackers
Yes, I am aware of that limitation.  If you link libpq as a
Multithreaded DLL, it will not link libc into each DLL, but have only
one libc that can free from anywhere. 

Is that acceptable or do we need a Win32 specific memory free function?

---------------------------------------------------------------------------

Key88 SF wrote:
> 
> 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@hotmail.com
> 
> 
> _________________________________________________________________
> Add photos to your messages with MSN 8. Get 2 months FREE*.  
> http://join.msn.com/?page=features/featuredemail
> 
> 
> ---------------------------(end of broadcast)---------------------------
> TIP 3: if posting/reading through Usenet, please send an appropriate
> subscribe-nomail command to majordomo@postgresql.org so that your
> message can get through to the mailing list cleanly
> 

--  Bruce Momjian                        |  http://candle.pha.pa.us pgman@candle.pha.pa.us               |  (610)
359-1001+  If your life is a hard drive,     |  13 Roberts Road +  Christ can be your backup.        |  Newtown Square,
Pennsylvania19073
 


В списке pgsql-hackers по дате отправления:

Предыдущее
От: "Key88 SF"
Дата:
Сообщение: PQescapeBytea on Win32
Следующее
От: "Key88 SF"
Дата:
Сообщение: Re: PQescapeBytea on Win32