Received: from eggs.gnu.org ([2001:4830:134:3::10]:56569) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bkYEl-0000QI-3K for qemu-devel@nongnu.org; Thu, 15 Sep 2016 11:06:07 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bkYEg-0008MC-6c for qemu-devel@nongnu.org; Thu, 15 Sep 2016 11:06:02 -0400 Received: from 2.mo177.mail-out.ovh.net ([178.33.109.80]:33740) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bkYEg-0008Lg-0A for qemu-devel@nongnu.org; Thu, 15 Sep 2016 11:05:58 -0400 Received: from player699.ha.ovh.net (b9.ovh.net [213.186.33.59]) by mo177.mail-out.ovh.net (Postfix) with ESMTP id 3CAF6FFCA5D for ; Thu, 15 Sep 2016 17:05:56 +0200 (CEST) References: <147394943723.684.13967719989878111420.stgit@bahia> <147394945209.684.4617472235895650336.stgit@bahia> From: =?UTF-8?Q?C=c3=a9dric_Le_Goater?= Message-ID: <2adaa3af-04eb-39dd-20d7-835de84ab329@kaod.org> Date: Thu, 15 Sep 2016 17:05:51 +0200 MIME-Version: 1.0 In-Reply-To: <147394945209.684.4617472235895650336.stgit@bahia> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [Qemu-devel] [PATCH 2/4] 9pfs: drop duplicate line in proxy backend List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Greg Kurz , qemu-devel@nongnu.org Cc: "Aneesh Kumar K.V" On 09/15/2016 04:24 PM, Greg Kurz wrote: > This double free did not cause harm because v9fs_string_free() sets > str->data to NULL and g_free(NULL) is valid. >=20 > Signed-off-by: Greg Kurz Reviewed-by: C=C3=A9dric Le Goater > --- > hw/9pfs/9p-proxy.c | 1 - > 1 file changed, 1 deletion(-) >=20 > diff --git a/hw/9pfs/9p-proxy.c b/hw/9pfs/9p-proxy.c > index 52bbf4f1b37c..d091564b6fd2 100644 > --- a/hw/9pfs/9p-proxy.c > +++ b/hw/9pfs/9p-proxy.c > @@ -775,11 +775,10 @@ static int proxy_mkdir(FsContext *fs_ctx, V9fsPat= h *dir_path, > v9fs_string_free(&fullname); > if (retval < 0) { > errno =3D -retval; > retval =3D -1; > } > - v9fs_string_free(&fullname); > return retval; > } > =20 > static int proxy_fstat(FsContext *fs_ctx, int fid_type, > V9fsFidOpenState *fs, struct stat *stbuf) >=20 >=20