[xml] Runtime error in xpath1.c example


I get a runtime error in the example "xpath1.c" whenever I provide a namespace list as 3rd argument (last CVS 
under Windows 2000+MS VC++ 6.0).

I think the problem is in line #185: 

line #140:     xmlChar* nsListDup;
line #148:     nsListDup = xmlStrdup(nsList);
line #185:     free(nsListDup);
It should be:
line #185:     xmlFree(nsListDup);

At least this modification solves the problem in my platform.

Thanks for all the examples, they are really useful.

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