From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtpng2.m.smailru.net (smtpng2.m.smailru.net [94.100.179.3]) (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 1D0DC469719 for ; Thu, 17 Sep 2020 17:53:49 +0300 (MSK) References: <20200911215115.6622-1-roman.habibov@tarantool.org> <20200911215115.6622-5-roman.habibov@tarantool.org> From: Vladislav Shpilevoy Message-ID: <06ae460c-b078-cbbb-14b5-7970ba669d40@tarantool.org> Date: Thu, 17 Sep 2020 16:53:47 +0200 MIME-Version: 1.0 In-Reply-To: <20200911215115.6622-5-roman.habibov@tarantool.org> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Subject: Re: [Tarantool-patches] [PATCH v4 4/6] sql: use parser's region of "index" array List-Id: Tarantool development patches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Roman Khabibov , tarantool-patches@dev.tarantool.org Thanks for the patch! On 11.09.2020 23:51, Roman Khabibov wrote: > Allocate memory for the "index" array of ephemeral space on the > parser's region instead of a heap as it was before. Fixed a memory > leak that realloc() generated. You need to provide more info why it can't be stored on the heap, and why free() can't be simply called somewhere.