Skip to content
Permalink
Browse files

#721: fixed crash on deleting of static string

  • Loading branch information...
klirichek committed Feb 26, 2019
2 parents 1c8b962 + 3197ff3 commit daa88b579fa373d5d2e869e43a2e178363b0fef1
Showing with 2 additions and 1 deletion.
  1. +2 −1 src/searchd.cpp
@@ -16807,7 +16807,8 @@ void HandleMysqlSelectDual ( SqlRowBuffer_c & tOut, const SqlStmt_t & tStmt )
case SPH_ATTR_STRINGPTR:
pExpr->StringEval ( tMatch, &pStr );
tOut.PutString ( pStr );
SafeDelete ( pStr );
if ( pExpr->IsDataPtrAttr() )
SafeDeleteArray ( pStr );
break;
case SPH_ATTR_INTEGER: tOut.PutNumAsString ( pExpr->IntEval ( tMatch ) ); break;
case SPH_ATTR_BIGINT: tOut.PutNumAsString ( pExpr->Int64Eval ( tMatch ) ); break;

0 comments on commit daa88b5

Please sign in to comment.
You can’t perform that action at this time.