summaryrefslogtreecommitdiff
path: root/uri.c
diff options
context:
space:
mode:
authorDaniel Veillard <veillard@src.gnome.org>2001-11-10 11:57:23 +0000
committerDaniel Veillard <veillard@src.gnome.org>2001-11-10 11:57:23 +0000
commit43d3f61ad5c142c8c17e45c8c954432916ffceab (patch)
tree34f157653e3a7d2bf76c9727b0bcf92d967e5438 /uri.c
parentc1f78343b6b1e566147d90f43d13fe514fb2f214 (diff)
downloadlibxml2-43d3f61ad5c142c8c17e45c8c954432916ffceab.tar.gz
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
Diffstat (limited to 'uri.c')
-rw-r--r--uri.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/uri.c b/uri.c
index 2aa9496b..ab547f5a 100644
--- a/uri.c
+++ b/uri.c
@@ -1004,10 +1004,9 @@ xmlURIEscape(const xmlChar * str)
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 @@ xmlURIEscape(const xmlChar * str)
ret = xmlStrcat(ret, segment);
xmlFree(segment);
}
+
+ xmlFreeURI(uri);
#undef NULLCHK
return (ret);