Database: fix tmp array deletion
Found by Coverity Scan, CID 25544. Change-Id: Iaf0866ebd4a458fabfe79336d8c8b639e42147c5
This commit is contained in:
@ -280,7 +280,7 @@ std::string Database::escape_string(const std::string unescaped_string) {
|
||||
|
||||
std::string result = temp;
|
||||
|
||||
delete temp;
|
||||
delete[] temp;
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user