From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp37.i.mail.ru (smtp37.i.mail.ru [94.100.177.97]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dev.tarantool.org (Postfix) with ESMTPS id 5D6E2469719 for ; Sat, 12 Sep 2020 01:22:04 +0300 (MSK) From: Roman Khabibov Date: Sat, 12 Sep 2020 01:22:03 +0300 Message-Id: <20200911222203.12336-1-roman.habibov@tarantool.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [Tarantool-patches] [PATCH] sql: add missed sqlReleaseTempRange() List-Id: Tarantool development patches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: tarantool-patches@dev.tarantool.org Clean up temp registers with sqlReleaseTempRange() during check constraint alter. --- Branch: https://github.com/tarantool/tarantool/tree/romanhabibov/release-temp-reg Issue: - src/box/sql/alter.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/box/sql/alter.c b/src/box/sql/alter.c index 14f6c1a97..4874b46c9 100644 --- a/src/box/sql/alter.c +++ b/src/box/sql/alter.c @@ -136,6 +136,7 @@ sql_alter_ck_constraint_enable(struct Parse *parse) tuple_reg + field_count); sqlVdbeAddOp4(v, OP_IdxReplace, tuple_reg + field_count, 0, 0, (char *)ck_space, P4_SPACEPTR); + sqlReleaseTempRange(parse, tuple_reg, field_count + 1); exit_alter_ck_constraint: sqlDbFree(db, constraint_name); sqlSrcListDelete(db, src_tab); -- 2.24.3 (Apple Git-128)