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

Make iterator seek target a local variable #682

@vweevers

Description

@vweevers

Here:

NAPI_METHOD(iterator_seek) {

Because that's the only function in which it's used. We don't have to keep it around. Removing the need for this:

leveldown/binding.cc

Lines 559 to 567 in 55f30a3

void ReleaseTarget () {
if (target_ != NULL) {
if (!target_->empty()) {
delete [] target_->data();
}
delete target_;
target_ = NULL;
}
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    refactorRequires or pertains to refactoringsemver-patchBug fixes that are backward compatible

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions