mirror of
https://github.com/postgres/postgres.git
synced 2026-06-15 11:39:05 -04:00
xslt_process() parses the stylesheet text into an xmlDoc before passing it
to xsltParseStylesheetDoc(). On success, the returned stylesheet owns
that document and frees it through xsltFreeStylesheet(), calling
xmlFreeDoc() at its end. On failure, libxslt leaves the caller
responsible for the xmlDoc. In xml2, this would cause the memory
allocated for the xmlDoc to pile up across calls of xslt_process() when
failing to create a sheet.
While on it, I have double-checked the code of xml2 with libxslt, and it
seems that we are in the clear now, hopefully.. This leak exists for a
long time.
|
||
|---|---|---|
| .. | ||
| expected | ||
| sql | ||
| .gitignore | ||
| Makefile | ||
| meson.build | ||
| xml2--1.0--1.1.sql | ||
| xml2--1.1--1.2.sql | ||
| xml2--1.1.sql | ||
| xml2.control | ||
| xpath.c | ||
| xslt_proc.c | ||