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:
parent
ab42db972a
commit
5dfcaa4d32
@ -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;
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user