diff --git a/binding.cc b/binding.cc index d6394c34..c30ac76f 100644 --- a/binding.cc +++ b/binding.cc @@ -260,6 +260,7 @@ static std::vector* KeyArray (napi_env env, napi_value arr) { StringOrBufferLength(env, element) > 0) { LD_STRING_OR_BUFFER_TO_COPY(env, element, to); result->emplace_back(toCh_, toSz_); + delete [] toCh_; } } }