diff --git a/src/util.h b/src/util.h index 0e6fd5dd067c73..7d847c9bd32b5b 100644 --- a/src/util.h +++ b/src/util.h @@ -438,7 +438,7 @@ struct MallocedBuffer { } MallocedBuffer& operator=(MallocedBuffer&& other) { this->~MallocedBuffer(); - return *new(this) MallocedBuffer(other); + return *new(this) MallocedBuffer(std::move(other)); } ~MallocedBuffer() { free(data);