pgsql: Fix significant memory leak in contrib/xml2 functions.

Поиск
Список
Период
Сортировка
От Tom Lane
Тема pgsql: Fix significant memory leak in contrib/xml2 functions.
Дата
Msg-id E1PM4oD-0001TP-0m@gemulon.postgresql.org
обсуждение исходный текст
Список pgsql-committers
Fix significant memory leak in contrib/xml2 functions.

Most of the functions that execute XPath queries leaked the data structures
created by libxml2.  This memory would not be recovered until end of
session, so it mounts up pretty quickly in any serious use of the feature.
Per report from Pavel Stehule, though this isn't his patch.

Back-patch to all supported branches.

Branch
------
master

Details
-------
http://git.postgresql.org/gitweb?p=postgresql.git;a=commitdiff;h=4a2516a7f976e2f6671930904d4e97a4832eff9f

Modified Files
--------------
contrib/xml2/xpath.c |  162 ++++++++++++++++++++++++++++----------------------
1 files changed, 90 insertions(+), 72 deletions(-)


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

Предыдущее
От: Bruce Momjian
Дата:
Сообщение: pgsql: Add inet_net_ntop.c as needed by MSVC, per Magnus.
Следующее
От: Tom Lane
Дата:
Сообщение: pgsql: Fix significant memory leak in contrib/xml2 functions.