preparing 2.4.10 upgraded and rebuilt the docs Daniel
* configure.in include/libxml/xmlwin32version.h: preparing 2.4.10
* doc/*: upgraded and rebuilt the docs
Daniel
diff --git a/uri.c b/uri.c
index 2aa9496..ab547f5 100644
--- a/uri.c
+++ b/uri.c
@@ -1004,10 +1004,9 @@
if (uri->port) {
xmlChar port[10];
- snprintf((char *) segment, 10, "%d", uri->port);
+ snprintf((char *) port, 10, "%d", uri->port);
ret = xmlStrcat(ret, BAD_CAST ":");
ret = xmlStrcat(ret, port);
- xmlFree(segment);
}
if (uri->path) {
@@ -1042,6 +1041,8 @@
ret = xmlStrcat(ret, segment);
xmlFree(segment);
}
+
+ xmlFreeURI(uri);
#undef NULLCHK
return (ret);