From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Date: Fri, 15 Feb 2019 15:41:43 +0300 From: Konstantin Osipov Subject: Re: [PATCH v2 1/3] vclock: use static buffer to format vclock Message-ID: <20190215124143.GA14894@chai> References: <61f47446fb76bbcb80ad003c209bd697b1bff007.1550232829.git.vdavydov.dev@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <61f47446fb76bbcb80ad003c209bd697b1bff007.1550232829.git.vdavydov.dev@gmail.com> To: Vladimir Davydov Cc: tarantool-patches@freelists.org List-ID: * Vladimir Davydov [19/02/15 15:26]: > Currently, vclock_to_string() allocates the formatted vclock string > using malloc() and hence the caller is responsible for freeing it, which > isn't very user-friendly. Let's use a static buffer as we do to format > other objects. OK to push. -- Konstantin Osipov, Moscow, Russia, +7 903 626 22 32 http://tarantool.io - www.twitter.com/kostja_osipov