Re: [xml] xml freeing the same string twice

2011-04-05 Thread Nikolay Sivov
On 4/5/2011 08:29, Wolfgang Rohdewald wrote: Hi, meinproc4.exe (from KDE on windows) always crashes. using libxml2-2.7.7 I think I found one problem causing this in xmlSAX2TextNode using the xmlDict for short strings and such for avoiding malloc/free on them. So it sets the text node content

Re: [xml] xml freeing the same string twice

2011-04-05 Thread Wolfgang Rohdewald
On Dienstag 05 April 2011, Nikolay Sivov wrote: DICT_FREE() already check if string is owned by a dictionary or not. If it's owned it's freed with a dictionary in xmlDictFree(), otherwise it's freed as is with xmlFree. OK, I'll have to dig deeper Could you attach a test source for that?

Re: [xml] xml freeing the same string twice

2011-04-05 Thread Wolfgang Rohdewald
On Dienstag 05 April 2011, Nikolay Sivov wrote: DICT_FREE() already check if string is owned by a dictionary or not. If it's owned it's freed with a dictionary in xmlDictFree(), otherwise it's freed as is with xmlFree. DICT_FREE fails because cur-doc is NULL, so there is no dict do you have

Re: [xml] xml freeing the same string twice

2011-04-05 Thread Wolfgang Rohdewald
On Dienstag 05 April 2011, Wolfgang Rohdewald wrote: On Dienstag 05 April 2011, Nikolay Sivov wrote: DICT_FREE() already check if string is owned by a dictionary or not. If it's owned it's freed with a dictionary in xmlDictFree(), otherwise it's freed as is with xmlFree. DICT_FREE fails