diff --git a/src/util.h b/src/util.h index 26654f15a1a626..1f43ba3f7b90f3 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);