Received: from eggs.gnu.org ([2001:4830:134:3::10]:45846) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bkXaT-0007CM-IB for qemu-devel@nongnu.org; Thu, 15 Sep 2016 10:24:29 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bkXaN-0001u8-H5 for qemu-devel@nongnu.org; Thu, 15 Sep 2016 10:24:24 -0400 Received: from mx0a-001b2d01.pphosted.com ([148.163.156.1]:38580) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bkXaN-0001tz-8x for qemu-devel@nongnu.org; Thu, 15 Sep 2016 10:24:19 -0400 Received: from pps.filterd (m0098393.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.17/8.16.0.17) with SMTP id u8FEO0IF029535 for ; Thu, 15 Sep 2016 10:24:18 -0400 Received: from e38.co.us.ibm.com (e38.co.us.ibm.com [32.97.110.159]) by mx0a-001b2d01.pphosted.com with ESMTP id 25f8ud0sde-1 (version=TLSv1.2 cipher=AES256-SHA bits=256 verify=NOT) for ; Thu, 15 Sep 2016 10:24:18 -0400 Received: from localhost by e38.co.us.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Thu, 15 Sep 2016 08:24:17 -0600 From: Greg Kurz Date: Thu, 15 Sep 2016 16:24:12 +0200 In-Reply-To: <147394943723.684.13967719989878111420.stgit@bahia> References: <147394943723.684.13967719989878111420.stgit@bahia> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <147394945209.684.4617472235895650336.stgit@bahia> Subject: [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: qemu-devel@nongnu.org Cc: Greg Kurz , "Aneesh Kumar K.V" This double free did not cause harm because v9fs_string_free() sets str->data to NULL and g_free(NULL) is valid. Signed-off-by: Greg Kurz --- hw/9pfs/9p-proxy.c | 1 - 1 file changed, 1 deletion(-) 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, V9fsPath *dir_path, v9fs_string_free(&fullname); if (retval < 0) { errno = -retval; retval = -1; } - v9fs_string_free(&fullname); return retval; } static int proxy_fstat(FsContext *fs_ctx, int fid_type, V9fsFidOpenState *fs, struct stat *stbuf)