Received: from eggs.gnu.org ([2001:4830:134:3::10]:54304) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b9tin-0001It-OK for qemu-devel@nongnu.org; Mon, 06 Jun 2016 08:33:38 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1b9tif-0001PC-M3 for qemu-devel@nongnu.org; Mon, 06 Jun 2016 08:33:32 -0400 Received: from mx0b-001b2d01.pphosted.com ([148.163.158.5]:51406) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b9tif-0001P8-H6 for qemu-devel@nongnu.org; Mon, 06 Jun 2016 08:33:25 -0400 Received: from pps.filterd (m0048817.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.11/8.16.0.11) with SMTP id u56CTla1009756 for ; Mon, 6 Jun 2016 08:33:25 -0400 Message-Id: <201606061233.u56CTla1009756@mx0a-001b2d01.pphosted.com> Received: from e06smtp09.uk.ibm.com (e06smtp09.uk.ibm.com [195.75.94.105]) by mx0b-001b2d01.pphosted.com with ESMTP id 23d3u4t9ax-1 (version=TLSv1.2 cipher=AES256-SHA bits=256 verify=NOT) for ; Mon, 06 Jun 2016 08:33:24 -0400 Received: from localhost by e06smtp09.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Mon, 6 Jun 2016 13:33:22 +0100 Received: from b06cxnps4074.portsmouth.uk.ibm.com (d06relay11.portsmouth.uk.ibm.com [9.149.109.196]) by d06dlp03.portsmouth.uk.ibm.com (Postfix) with ESMTP id 6EFD01B0805F for ; Mon, 6 Jun 2016 13:34:20 +0100 (BST) Received: from d06av08.portsmouth.uk.ibm.com (d06av08.portsmouth.uk.ibm.com [9.149.37.249]) by b06cxnps4074.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id u56CXFbd12517658 for ; Mon, 6 Jun 2016 12:33:15 GMT Received: from d06av08.portsmouth.uk.ibm.com (localhost [127.0.0.1]) by d06av08.portsmouth.uk.ibm.com (8.14.4/8.14.4/NCO v10.0 AVout) with ESMTP id u56CXE7M023227 for ; Mon, 6 Jun 2016 06:33:15 -0600 From: Greg Kurz Date: Mon, 6 Jun 2016 14:32:42 +0200 In-Reply-To: <1465216365-13078-1-git-send-email-gkurz@linux.vnet.ibm.com> References: <1465216365-13078-1-git-send-email-gkurz@linux.vnet.ibm.com> Subject: [Qemu-devel] [PULL 4/7] 9p: drop useless out: label List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Peter Maydell , "Aneesh Kumar K.V" , Greg Kurz Reviewed-by: Eric Blake Signed-off-by: Greg Kurz --- hw/9pfs/9p.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/hw/9pfs/9p.c b/hw/9pfs/9p.c index a71d44dc7420..42ac4d79fbe3 100644 --- a/hw/9pfs/9p.c +++ b/hw/9pfs/9p.c @@ -1642,15 +1642,15 @@ static int v9fs_do_readdir_with_stat(V9fsPDU *pdu, } err = v9fs_co_name_to_path(pdu, &fidp->path, dent->d_name, &path); if (err < 0) { - goto out; + break; } err = v9fs_co_lstat(pdu, &path, &stbuf); if (err < 0) { - goto out; + break; } err = stat_to_v9stat(pdu, &path, &stbuf, &v9stat); if (err < 0) { - goto out; + break; } /* 11 = 7 + 4 (7 = start offset, 4 = space for storing count) */ len = pdu_marshal(pdu, 11 + count, "S", &v9stat); @@ -1667,7 +1667,7 @@ static int v9fs_do_readdir_with_stat(V9fsPDU *pdu, v9fs_path_free(&path); saved_dir_pos = dent->d_off; } -out: + g_free(dent); v9fs_path_free(&path); if (err < 0) { -- 2.5.5