Skip to content

Commit

Permalink
Fix getMany() memory leak (#804)
Browse files Browse the repository at this point in the history
  • Loading branch information
vweevers authored Mar 25, 2022
1 parent 4f6b2ff commit 51979d1
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 @@ -260,6 +260,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 51979d1

Please # to comment.