diff --git a/arangod/Cluster/ClusterMethods.cpp b/arangod/Cluster/ClusterMethods.cpp index c40c78af23..39ad9c54a8 100644 --- a/arangod/Cluster/ClusterMethods.cpp +++ b/arangod/Cluster/ClusterMethods.cpp @@ -543,6 +543,7 @@ int createDocumentOnCoordinator ( shared_ptr collinfo = ci->getCollection(dbname, collname); if (collinfo->empty()) { + TRI_FreeJson(TRI_UNKNOWN_MEM_ZONE, json); return TRI_ERROR_ARANGO_COLLECTION_NOT_FOUND; }