Easy
Release the buffer in the destructor
Fill in the blank so the destructor releases the array Buffer owns, without leaking memory or triggering undefined behavior.
main.cpp
class Buffer {public: explicit Buffer(size_t n) : data_(new int[n]) {} ~Buffer() { }private: int* data_;};86 of 117 in C++