Skip to content

Commit

Permalink
Merge pull request #67 from delroth/master
Browse files Browse the repository at this point in the history
Fix memory management issues causing failures under the scudo allocator
  • Loading branch information
bruceg authored Jan 6, 2020
2 parents 691f371 + 834e2eb commit 073f4e9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/fdbuf/fdbuf.cc
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ fdbuf::~fdbuf()
#ifdef _REENTRANT
pthread_mutex_destroy(&mutex);
#endif
delete buf;
delete[] buf;
}

bool fdbuf::error() const
Expand Down
2 changes: 1 addition & 1 deletion lib/mystring/rep.cc
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,6 @@ void mystringrep::detach()
--references;
if(!references) {
trace("deleting this");
delete this;
delete[] (char*)this;
}
}

0 comments on commit 073f4e9

Please sign in to comment.