Skip to content
This repository was archived by the owner on Dec 1, 2024. It is now read-only.

Commit 680f94b

Browse files
authored
Fix getMany() memory leak (#193)
Ref #192 Ref Level/leveldown#790
1 parent 42889e7 commit 680f94b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

binding.cc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -274,6 +274,7 @@ static std::vector<std::string>* KeyArray (napi_env env, napi_value arr) {
274274
StringOrBufferLength(env, element) > 0) {
275275
LD_STRING_OR_BUFFER_TO_COPY(env, element, to);
276276
result->emplace_back(toCh_, toSz_);
277+
delete [] toCh_;
277278
}
278279
}
279280
}

0 commit comments

Comments
 (0)