Received: from eggs.gnu.org ([2001:4830:134:3::10]:57954) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bPYy3-0001EE-Ki for qemu-devel@nongnu.org; Tue, 19 Jul 2016 13:38:04 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bPYy0-00064D-Ev for qemu-devel@nongnu.org; Tue, 19 Jul 2016 13:38:03 -0400 Received: from mx1.redhat.com ([209.132.183.28]:38321) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bPYy0-000646-9D for qemu-devel@nongnu.org; Tue, 19 Jul 2016 13:38:00 -0400 Received: from int-mx10.intmail.prod.int.phx2.redhat.com (int-mx10.intmail.prod.int.phx2.redhat.com [10.5.11.23]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id AECE546269 for ; Tue, 19 Jul 2016 17:37:59 +0000 (UTC) From: Markus Armbruster References: <1468947453-5433-1-git-send-email-prasanna.kalever@redhat.com> <1468947453-5433-5-git-send-email-prasanna.kalever@redhat.com> Date: Tue, 19 Jul 2016 19:37:57 +0200 In-Reply-To: <1468947453-5433-5-git-send-email-prasanna.kalever@redhat.com> (Prasanna Kumar Kalever's message of "Tue, 19 Jul 2016 22:27:32 +0530") Message-ID: <87shv5r0ju.fsf@dusky.pond.sub.org> MIME-Version: 1.0 Content-Type: text/plain Subject: Re: [Qemu-devel] [PATCH v20 4/5] block/gluster: using new qapi schema List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Prasanna Kumar Kalever Cc: qemu-devel@nongnu.org, kwolf@redhat.com, pkrempa@redhat.com, vbellur@redhat.com, jcody@redhat.com, rtalur@redhat.com One more thing... Prasanna Kumar Kalever writes: > this patch adds 'GlusterServer' related schema in qapi/block-core.json > > Signed-off-by: Prasanna Kumar Kalever > --- > block/gluster.c | 115 +++++++++++++++++++++++++++++---------------------- > qapi/block-core.json | 68 +++++++++++++++++++++++++++--- > 2 files changed, 128 insertions(+), 55 deletions(-) > > diff --git a/block/gluster.c b/block/gluster.c > index 8a54ad4..c4ca59e 100644 > --- a/block/gluster.c > +++ b/block/gluster.c [...] > @@ -628,7 +641,9 @@ static int qemu_gluster_create(const char *filename, > } > out: > g_free(tmp); > - qemu_gluster_gconf_free(gconf); > + if (gconf) { > + qapi_free_BlockdevOptionsGluster(gconf); > + } qapi_free_FOO(NULL) is safe. Let's drop the conditional. Could be done on commit, or as a follow-up cleanup. > if (glfs) { > glfs_fini(glfs); > } [...] R-by stands.