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 24, 2022
1 parent 1a20a0e commit 6cbf8b0
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 6cbf8b0

Please sign in to comment.