From a15b7ff7ba6e7ccd85bdd0042dd7ea65d6840e99 Mon Sep 17 00:00:00 2001 From: Jonathan Robie Date: Thu, 16 Sep 2010 14:52:37 +0000 Subject: Fixes parsing problem with empty lists ('[]') in addresses, which previously raised an exception and leaked the memory associated with the AddressImpl. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@997771 13f79535-47bb-0310-9956-ffa450edef68 --- cpp/src/qpid/messaging/AddressParser.h | 1 + 1 file changed, 1 insertion(+) (limited to 'cpp/src/qpid/messaging/AddressParser.h') diff --git a/cpp/src/qpid/messaging/AddressParser.h b/cpp/src/qpid/messaging/AddressParser.h index a3f41eb04d..1635331d19 100644 --- a/cpp/src/qpid/messaging/AddressParser.h +++ b/cpp/src/qpid/messaging/AddressParser.h @@ -46,6 +46,7 @@ class AddressParser bool readSimpleValue(qpid::types::Variant& word); bool readKey(std::string& key); bool readValue(qpid::types::Variant& value); + bool readValueIfExists(qpid::types::Variant& value); bool readKeyValuePair(qpid::types::Variant::Map& map); bool readMap(qpid::types::Variant& value); bool readList(qpid::types::Variant& value); -- cgit v1.2.1