Skip to content

Commit

Permalink
fix(tinmu): fix tianmu crash when set varchar to num when order by
Browse files Browse the repository at this point in the history
  • Loading branch information
unknown authored and mergify[bot] committed May 22, 2023
1 parent 6c11356 commit 69a49bd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion storage/tianmu/types/bstring.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ BString::BString(const BString &tianmu_s)
}

BString::~BString() {
if (persistent_)
if (persistent_ && len_)
delete[] val_;
}

Expand Down

0 comments on commit 69a49bd

Please sign in to comment.