diff options
author | Daniel Veillard <veillard@src.gnome.org> | 2001-11-10 11:57:23 +0000 |
---|---|---|
committer | Daniel Veillard <veillard@src.gnome.org> | 2001-11-10 11:57:23 +0000 |
commit | 43d3f61ad5c142c8c17e45c8c954432916ffceab (patch) | |
tree | 34f157653e3a7d2bf76c9727b0bcf92d967e5438 /uri.c | |
parent | c1f78343b6b1e566147d90f43d13fe514fb2f214 (diff) | |
download | libxml2-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.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -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); |