Skip to content

Commit 4fe334b

Browse files
committed
Release BurpSql statement.
1 parent 34fe753 commit 4fe334b

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/burp/burp.h

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1290,6 +1290,15 @@ class BurpSql : public Firebird::AutoStorage
12901290
stmt = tdgbl->db_handle->prepare(&tdgbl->throwStatus, tdgbl->tr_handle, 0, sql, 3, 0);
12911291
}
12921292

1293+
~BurpSql()
1294+
{
1295+
if (stmt)
1296+
{
1297+
stmt->free(&tdgbl->status_vector);
1298+
stmt->release();
1299+
}
1300+
}
1301+
12931302
template <typename M>
12941303
void singleSelect(Firebird::ITransaction* trans, M* msg)
12951304
{

0 commit comments

Comments
 (0)