From 0605338d5eba6fb6c7569b4855f8eee789c84a88 Mon Sep 17 00:00:00 2001 From: Michael Hackstein Date: Thu, 21 Jan 2016 09:36:24 +0100 Subject: [PATCH] Fixed a non closed VPackBuilder --- arangod/V8Server/v8-vocbase.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/arangod/V8Server/v8-vocbase.cpp b/arangod/V8Server/v8-vocbase.cpp index ac686abb41..e0358ab4ec 100644 --- a/arangod/V8Server/v8-vocbase.cpp +++ b/arangod/V8Server/v8-vocbase.cpp @@ -3147,7 +3147,7 @@ static void CreateDatabaseCoordinator( uint64_t const id = ClusterInfo::instance()->uniqid(); VPackBuilder builder; try { - builder.openObject(); + VPackObjectBuilder b(&builder); std::string const idString(StringUtils::itoa(id)); builder.add("id", VPackValue(idString)); @@ -3165,7 +3165,6 @@ static void CreateDatabaseCoordinator( std::string const serverId(ServerState::instance()->getId()); builder.add("coordinator", VPackValue(serverId)); - } catch (VPackException const& e) { TRI_V8_THROW_EXCEPTION_MEMORY(); }