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 cf161a5 commit 1eef01c
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 @@ -285,6 +285,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 1eef01c

Please sign in to comment.