Re: PostgreSQL vs SQL/XML Standards
От | Pavel Stehule |
---|---|
Тема | Re: PostgreSQL vs SQL/XML Standards |
Дата | |
Msg-id | CAFj8pRAaGO5FX7bnP3E=mRssoK8y5T78x7jKy-vDiyS68L888Q@mail.gmail.com обсуждение исходный текст |
Ответ на | Re: PostgreSQL vs SQL/XML Standards (Alvaro Herrera <alvherre@2ndquadrant.com>) |
Ответы |
Re: PostgreSQL vs SQL/XML Standards
|
Список | pgsql-hackers |
Hi
pá 8. 3. 2019 v 19:44 odesílatel Alvaro Herrera <alvherre@2ndquadrant.com> napsal:
On 2019-Mar-08, Alvaro Herrera wrote:
> > Maybe we can call explicitly xmlFreeDoc instead xmlFreeNode
> >
> > some like
> >
> > if (cur_copy->type == XML_DOCUMENT_NODE)
> > xmlFreeDoc((xmlDocPtr) cur_copy);
> > else
> > xmlFreeNode(cur_copy);
> >
> > This looks most correct fix for me. What do you think?
>
> Seems like that should work, yeah ...
Something like this perhaps? Less repetitive ...
I looking to code
void (*nodefree) (xmlNodePtr) = NULL;
volatile xmlBufferPtr buf = NULL;
volatile xmlBufferPtr buf = NULL;
should not be "nodefree" volatile too?
Pavel
--
Álvaro Herrera https://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services
В списке pgsql-hackers по дате отправления: