Re: [xslt] xsltParseStylesheetDoc



On Tue, Aug 14, 2001 at 12:56:38AM +1000, Darrin.Wortlehock@i7.com.au wrote:
>         xsltFreeStylesheet(cur);
>         printf("\nFreed Stylesheet....\n\n");
>         xmlFreeDoc(sheet);                      /*  <------ segfault
> happening here ------<    */

  you're freeing the stylesheet twice. Drop this call it's handled by
xsltFreeStylesheet(cur);

Daniel

-- 
Daniel Veillard      | Red Hat Network http://redhat.com/products/network/
veillard@redhat.com  | libxml Gnome XML XSLT toolkit  http://xmlsoft.org/
http://veillard.com/ | Rpmfind RPM search engine http://rpmfind.net/




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]