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