diff --git a/lib/ShapedJson/shape-accessor.cpp b/lib/ShapedJson/shape-accessor.cpp index be0c4d221d..3433a1905e 100644 --- a/lib/ShapedJson/shape-accessor.cpp +++ b/lib/ShapedJson/shape-accessor.cpp @@ -220,21 +220,14 @@ static bool BytecodeShapeAccessor (TRI_shaper_t* shaper, TRI_shape_access_t* acc } LOG_TRACE("unknown attribute id '%ld'", (unsigned long) *paids); - - TRI_DestroyVectorPointer(&ops); - - accessor->_resultSid = TRI_SHAPE_ILLEGAL; - accessor->_code = nullptr; - return true; } - else { - TRI_DestroyVectorPointer(&ops); - accessor->_resultSid = TRI_SHAPE_ILLEGAL; - accessor->_code = nullptr; + TRI_DestroyVectorPointer(&ops); - return true; - } + accessor->_resultSid = TRI_SHAPE_ILLEGAL; + accessor->_code = nullptr; + + return true; } // travel attribute path to the end