Skip to content

Commit

Permalink
Fix getMany() memory leak
Browse files Browse the repository at this point in the history
  • Loading branch information
vweevers committed Mar 25, 2022
1 parent 42889e7 commit 5617c15
Showing 1 changed file with 1 addition and 0 deletions.
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

0 comments on commit 5617c15

Please sign in to comment.