mirror of
https://github.com/pocoproject/poco.git
synced 2025-03-18 19:37:51 +01:00
fix(SQLParser): typo that leads to the use of freed memory
This commit is contained in:
parent
c9dc1f9d3c
commit
79888c0e06
@ -67,7 +67,7 @@ int SQLParserResult::errorColumn() const { return errorColumn_; }
|
||||
void SQLParserResult::setIsValid(bool isValid) { isValid_ = isValid; }
|
||||
|
||||
void SQLParserResult::setErrorDetails(char* errorMsg, int errorLine, int errorColumn) {
|
||||
if (errorMsg_) free(errorMsg);
|
||||
if (errorMsg_) free(errorMsg_);
|
||||
errorMsg_ = errorMsg;
|
||||
errorLine_ = errorLine;
|
||||
errorColumn_ = errorColumn;
|
||||
|
Loading…
x
Reference in New Issue
Block a user