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

Commit

Permalink
delete calls.
Browse files Browse the repository at this point in the history
  • Loading branch information
chjj committed Apr 8, 2016
1 parent ce3eb77 commit b86e72b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/iterator.cc
Original file line number Diff line number Diff line change
Expand Up @@ -393,7 +393,7 @@ NAN_METHOD(Iterator::New) {
if (StringOrBufferLength(endBuffer) > 0) {
LD_STRING_OR_BUFFER_TO_COPY(_end, endBuffer, end)
end = new std::string(_endCh_, _endSz_);
delete _endCh_;
delete[] _endCh_;
}
}

Expand Down Expand Up @@ -463,7 +463,7 @@ NAN_METHOD(Iterator::New) {
if (StringOrBufferLength(gtBuffer) > 0) {
LD_STRING_OR_BUFFER_TO_COPY(_gt, gtBuffer, gt)
gt = new std::string(_gtCh_, _gtSz_);
delete _gtCh_;
delete[] _gtCh_;
if (!reverse) {
if (startStr != NULL) {
delete[] startStr;
Expand All @@ -486,7 +486,7 @@ NAN_METHOD(Iterator::New) {
if (StringOrBufferLength(gteBuffer) > 0) {
LD_STRING_OR_BUFFER_TO_COPY(_gte, gteBuffer, gte)
gte = new std::string(_gteCh_, _gteSz_);
delete _gteCh_;
delete[] _gteCh_;
if (!reverse) {
if (startStr != NULL) {
delete[] startStr;
Expand Down

0 comments on commit b86e72b

Please sign in to comment.