From 1a6ad1ebc84ca728622fdccdd61c512b27109829 Mon Sep 17 00:00:00 2001 From: dimitr Date: Sat, 6 Apr 2002 08:50:38 +0000 Subject: [PATCH] Fixed one memory allocation issue. --- src/jrd/exe.cpp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/jrd/exe.cpp b/src/jrd/exe.cpp index bdfc823ea0..a324494664 100644 --- a/src/jrd/exe.cpp +++ b/src/jrd/exe.cpp @@ -21,7 +21,7 @@ * Contributor(s): ______________________________________. */ /* -$Id: exe.cpp,v 1.8 2002-04-04 13:52:27 dimitr Exp $ +$Id: exe.cpp,v 1.9 2002-04-06 08:50:37 dimitr Exp $ */ #include "firebird.h" @@ -1264,7 +1264,8 @@ static void exec_sql(TDBB tdbb, REQ request, DSC* dsc) int len); UCHAR *p; - vary *v = reinterpret_cast (new char[BUFFER_LARGE + sizeof(vary)]); + vary *v = reinterpret_cast ( + new(*tdbb->tdbb_transaction->tra_pool) char[BUFFER_LARGE + sizeof(vary)]); v->vary_length = BUFFER_LARGE; SSHORT l; STATUS *status, local[ISC_STATUS_LENGTH]; @@ -1285,8 +1286,8 @@ static void exec_sql(TDBB tdbb, REQ request, DSC* dsc) else { tdbb->tdbb_transaction->tra_callback_count++; callback_execute_immediate(status, - reinterpret_cast (tdbb->tdbb_attachment), - reinterpret_cast (tdbb->tdbb_transaction), + reinterpret_cast (tdbb->tdbb_attachment), + reinterpret_cast (tdbb->tdbb_transaction), p, l); tdbb->tdbb_transaction->tra_callback_count--; }