8
0
mirror of https://github.com/FirebirdSQL/firebird.git synced 2025-02-02 08:00:39 +01:00

Replace "new" by "FB_NEW" to use the default pool.

This commit is contained in:
Adriano dos Santos Fernandes 2021-10-05 11:24:08 -03:00
parent ab42db972a
commit 5dfcaa4d32
2 changed files with 3 additions and 3 deletions

View File

@ -234,7 +234,7 @@ private:
{
unsigned l = aMeta->getMessageLength(&statusWrapper);
check(&statusWrapper);
buffer = new unsigned char[l];
buffer = FB_NEW unsigned char[l];
}
public:
@ -336,7 +336,7 @@ public:
if (!charBuffer)
{
charBuffer = new char[size + 1];
charBuffer = FB_NEW char[size + 1];
}
getStrValue(charBuffer);
return charBuffer;

View File

@ -11519,7 +11519,7 @@ void GrantRevokeNode::grantRevoke(thread_db* tdbb, jrd_tra* transaction, const G
const MetaName objName(object ? object->second : "");
bool crdb = false;
AutoPtr<char, ArrayDelete> privileges(new char[MAX(strlen(ALL_PRIVILEGES), strlen(privs ? privs : "")) + 1]);
AutoPtr<char, ArrayDelete> privileges(FB_NEW char[MAX(strlen(ALL_PRIVILEGES), strlen(privs ? privs : "")) + 1]);
strcpy(privileges, privs ? privs : "");
if (strcmp(privileges, "A") == 0)