Re: BUG #8461: PostgreSQL 9.3 pg_dump heap corruptions

Поиск
Список
Период
Сортировка
От Bruce Momjian
Тема Re: BUG #8461: PostgreSQL 9.3 pg_dump heap corruptions
Дата
Msg-id 20140224173322.GC16943@momjian.us
обсуждение исходный текст
Ответ на Re: BUG #8461: PostgreSQL 9.3 pg_dump heap corruptions  (Bruce Momjian <bruce@momjian.us>)
Список pgsql-bugs
On Fri, Feb 14, 2014 at 11:01:11PM -0500, Bruce Momjian wrote:
> Actually, there are many places where Windows binaries free memory
> allocated by libpq.  This is possible because of the way we compile
> libpq and the binary.  Our PQfreemem() manual page has the details
>
>       It is particularly important that this function, rather than
>       free(), be used on Microsoft Windows.  This is because allocating
>       memory in a DLL and releasing it in the application works only if
>       multithreaded/single-threaded, release/debug, and static/dynamic
>       flags are the same for the DLL and the application.  On non-Microsoft
>       Windows platforms, this function is the same as the standard library
>       function free().
>
> If the free() was not working for you, my guess is that you had
> mismatched flags for libpq and pg_dump compiles.
>
> However, you were right that there was a memory leak in that area of the
> code related to how funcfullsig and aggfullsig were conditionally
> assigned values, but not freed.
>
> The attached patch fixes this memory leak;  not sure if this should be
> back-patched.

Patch applied.  I have not backpatched this.

--
  Bruce Momjian  <bruce@momjian.us>        http://momjian.us
  EnterpriseDB                             http://enterprisedb.com

  + Everyone has their own god. +

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

Предыдущее
От: Bruce Momjian
Дата:
Сообщение: Re: Bad behaviour on some geometric operations on degenerate polygons
Следующее
От: brian@fluggo.com
Дата:
Сообщение: BUG #9337: SSPI/GSSAPI with mismatched user names