Skip to content

Commit

Permalink
Fix getMany() memory leak (#9)
Browse files Browse the repository at this point in the history
  • Loading branch information
vweevers authored Mar 25, 2022
1 parent aa975de commit 00364c7
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 00364c7

Please sign in to comment.