Skip to content

Commit

Permalink
[Sec]: Delete TWString by the original sConst pointer
Browse files Browse the repository at this point in the history
  • Loading branch information
satoshiotomakan committed Oct 26, 2023
1 parent 95742cb commit 5646264
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/interface/TWString.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ void TWStringDelete(TWString *_Nonnull string) {
if (!s->empty()) {
memzero(s->data(), s->size());
}
delete s;
delete sConst;
}

bool TWStringEqual(TWString *_Nonnull lhs, TWString *_Nonnull rhs) {
Expand Down

0 comments on commit 5646264

Please sign in to comment.