Skip to content
This repository has been archived by the owner on Dec 1, 2024. It is now read-only.

Fix getMany() memory leak #193

Merged
merged 1 commit into from
Mar 25, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions binding.cc
Original file line number Diff line number Diff line change
Expand Up @@ -274,6 +274,7 @@ static std::vector<std::string>* 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_;
}
}
}
Expand Down