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 119D646971A for ; Fri, 6 Dec 2019 15:48:12 +0300 (MSK) Date: Fri, 6 Dec 2019 15:48:11 +0300 From: Nikita Pettik Message-ID: <20191206124811.GA48142@tarantool.org> References: <2a81f02865168030c1632b4b4000ea331c84a016.1574846892.git.korablev@tarantool.org> <20191205113933.GB15510@tarantool.org> <42b6da43-0842-8d4f-d646-12f8bcda98d5@tarantool.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <42b6da43-0842-8d4f-d646-12f8bcda98d5@tarantool.org> Subject: Re: [Tarantool-patches] [PATCH 1/6] sql: refactor resulting set metadata List-Id: Tarantool development patches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Vladislav Shpilevoy Cc: tarantool-patches@dev.tarantool.org On 06 Dec 00:58, Vladislav Shpilevoy wrote: > Hi! Thanks for the fixes! > > Please, apply: Thx, applied. > diff --git a/src/box/sql/vdbeaux.c b/src/box/sql/vdbeaux.c > index e5528c0e2..f2cf386bb 100644 > --- a/src/box/sql/vdbeaux.c > +++ b/src/box/sql/vdbeaux.c > @@ -1865,7 +1865,7 @@ vdbe_metadata_set_col_name(struct Vdbe *p, int idx, const char *name) > { > assert(idx < p->nResColumn); > if (p->metadata[idx].name != NULL) > - free((void *)p->metadata[idx].name); > + free(p->metadata[idx].name); > p->metadata[idx].name = strdup(name); > if (p->metadata[idx].name == NULL) { > diag_set(OutOfMemory, strlen(name) + 1, "strdup", "name"); > @@ -1879,7 +1879,7 @@ vdbe_metadata_set_col_type(struct Vdbe *p, int idx, const char *type) > { > assert(idx < p->nResColumn); > if (p->metadata[idx].type != NULL) > - free((void *)p->metadata[idx].type); > + free(p->metadata[idx].type); > p->metadata[idx].type = strdup(type); > if (p->metadata[idx].type == NULL) { > diag_set(OutOfMemory, strlen(type) + 1, "strdup", "type");