X-Git-Url: http://sru.miketaylor.org.uk/?a=blobdiff_plain;f=src%2Fgduutil.cpp;h=0f1ebd8ae8b21a72220e83738305a01ab9d99786;hb=722c498e016a6eb94044c608a7d1dcb21e5013cd;hp=864cb617ec1ca5fde60ea64358074a0cd6ac92dd;hpb=ccfd534cda6a6e5dd2b0042031b883e856348c04;p=metaproxy-moved-to-github.git diff --git a/src/gduutil.cpp b/src/gduutil.cpp index 864cb61..0f1ebd8 100644 --- a/src/gduutil.cpp +++ b/src/gduutil.cpp @@ -1,5 +1,5 @@ /* This file is part of Metaproxy. - Copyright (C) 2005-2010 Index Data + Copyright (C) 2005-2012 Index Data Metaproxy is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free @@ -226,10 +226,9 @@ std::ostream& std::operator<<(std::ostream& os, Z_APDU& zapdu) os << "-"; os << " "; - WRBUF wr = wrbuf_alloc(); + mp::wrbuf wr; yaz_query_to_wrbuf(wr, sr->query); os << wrbuf_cstr(wr); - wrbuf_destroy(wr); } break; case Z_APDU_searchResponse: @@ -360,11 +359,10 @@ std::ostream& std::operator<<(std::ostream& os, Z_APDU& zapdu) os << " "; if (sr->termListAndStartPoint) { - WRBUF wr = wrbuf_alloc(); + mp::wrbuf wr; yaz_scan_to_wrbuf(wr, sr->termListAndStartPoint, sr->attributeSet); os << wrbuf_cstr(wr); - wrbuf_destroy(wr); } else os << "-";