X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=src%2Fmetaproxy_prog.cpp;h=4f28e4f595941083653c3298c3e9d0878cb10dfd;hb=dc0a7b40ef2cc8138c93e078dd8c34de64460ebe;hp=3784907b650273e3389e7fafc5364518e66bb3ef;hpb=a5e7c606c8a833d94a701f0edb73af7fdc75e38f;p=metaproxy-moved-to-github.git diff --git a/src/metaproxy_prog.cpp b/src/metaproxy_prog.cpp index 3784907..4f28e4f 100644 --- a/src/metaproxy_prog.cpp +++ b/src/metaproxy_prog.cpp @@ -29,6 +29,7 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA #include #include +#include #include "router_flexml.hpp" #include "factory_static.hpp" @@ -190,7 +191,7 @@ static int sc_main( yaz_log(YLOG_FATAL, "XInclude processing failed"); return 1; } - WRBUF base_path = wrbuf_alloc(); + mp::wrbuf base_path; const char *last_p = strrchr(fname, #ifdef WIN32 '\\' @@ -228,7 +229,6 @@ static int sc_main( yaz_log(YLOG_FATAL, "Unknown Exception"); ret = 1; } - wrbuf_destroy(base_path); xmlFreeDoc(doc); return ret; }