Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
src: guard against double free in randomBytes()
  • Loading branch information
bnoordhuis committed Jul 17, 2017
commit b8e3a3ecd7f18f2b3f1bf5b1db7a99b7b970e2ac
1 change: 1 addition & 0 deletions src/node_crypto.cc
Original file line number Diff line number Diff line change
Expand Up @@ -5498,6 +5498,7 @@ class RandomBytesRequest : public AsyncWrap {
size_ = 0;
if (free_mode_ == FREE_DATA) {
free(data_);
data_ = nullptr;
}
}

Expand Down