From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtpng3.m.smailru.net (smtpng3.m.smailru.net [94.100.177.149]) (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 0810B469719 for ; Thu, 8 Oct 2020 01:35:04 +0300 (MSK) References: <20200911215115.6622-1-roman.habibov@tarantool.org> <20200911215115.6622-3-roman.habibov@tarantool.org> <36bb1beb-a59a-57d9-a1ef-c0ef5af49d35@tarantool.org> <69305126-34BC-41B8-B209-4D7C3BE30BC2@tarantool.org> From: Vladislav Shpilevoy Message-ID: Date: Thu, 8 Oct 2020 00:35:03 +0200 MIME-Version: 1.0 In-Reply-To: <69305126-34BC-41B8-B209-4D7C3BE30BC2@tarantool.org> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Subject: Re: [Tarantool-patches] [PATCH v4 2/6] sql: refactor create_table_def and parse List-Id: Tarantool development patches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Roman Khabibov Cc: tarantool-patches@dev.tarantool.org Hi! Thanks for the answer! >>> diff --git a/src/box/sql/parse_def.h b/src/box/sql/parse_def.h >>> index cb0ecd2fc..21829b6f0 100644 >>> --- a/src/box/sql/parse_def.h >>> +++ b/src/box/sql/parse_def.h >>> @@ -500,12 +505,12 @@ create_view_def_init(struct create_view_def *view_def, struct Token *name, >>> } >>> >>> static inline void >>> -create_table_def_destroy(struct create_table_def *table_def) >>> +create_fkeys_def_destroy(struct create_fkeys_def *fkeys_def) >> >> Where is create_checks_def destroyed? > There's nothing to destroy in create_checks_def. Or is it worth > creating it to keep the formality? It has a list of ck_constraint_parse objects, which have ck_constraint_def objects. What is the memory they are allocated on?