From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-10.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 82794C4338F for ; Tue, 17 Aug 2021 14:08:22 +0000 (UTC) Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 2E0B360E09 for ; Tue, 17 Aug 2021 14:08:22 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 2E0B360E09 Authentication-Results: mail.kernel.org; dmarc=fail (p=quarantine dis=none) header.from=crudebyte.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=nongnu.org Received: from localhost ([::1]:41746 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mFzlN-0005V3-Dy for qemu-devel@archiver.kernel.org; Tue, 17 Aug 2021 10:08:21 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:43692) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mFzip-0000ns-Uk for qemu-devel@nongnu.org; Tue, 17 Aug 2021 10:05:45 -0400 Received: from lizzy.crudebyte.com ([91.194.90.13]:51329) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mFzin-0006WE-LU for qemu-devel@nongnu.org; Tue, 17 Aug 2021 10:05:43 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=crudebyte.com; s=lizzy; h=Cc:To:Subject:Date:From:Message-Id:Content-Type: Content-Transfer-Encoding:MIME-Version:References:In-Reply-To:Content-ID: Content-Description; bh=psZ9sNtbH1drUl2ct/UhvoIYIT9BX2QMci6kFt+Ljzo=; b=OkSwI fCTybCM+AMzcsLwE8PEjvXbuj5Si4I6qJ/X4R+jwLEcqstymqq9/LSJBIS+acABIm3CNv5+AK5+v+ eop/2FK5Q5sXUwcUDRACVtSadTl6fnWsrJnzhU5g8YZF0SfHNd/ev3TZgYEH9uTErM3CWI+MlEGN6 uMqtUr0A0RlSno++PBeRjH8AcLyg+aoPhFkFbUJ3nbxHwvLUe8d+7mae4clFVxqToWki51RT5ysxj u6Sk5qpZN5CxHVx9fVBaxnI37uVoDv/7D4AHCCALNAtm93skML/If4VL174VacYG9A4XOO5HgzXF4 JlWkDId80xknliwuxF43DtbAYeE3Q==; Message-Id: From: Christian Schoenebeck Date: Tue, 17 Aug 2021 15:52:39 +0200 Subject: [PATCH 0/2] 9pfs: v9fs_walk() cleanup To: qemu-devel@nongnu.org Cc: Greg Kurz Received-SPF: none client-ip=91.194.90.13; envelope-from=b51670d2a39399535a035f6bc77c3cbeed85edae@lizzy.crudebyte.com; helo=lizzy.crudebyte.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, SPF_HELO_NONE=0.001, SPF_NONE=0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Sender: "Qemu-devel" Few cleanup patches for function v9fs_walk() as discussed last month. In patch 2 array variables 'wnames' and 'pathes' are omitted because they contain dynamically allocated memory per array element which need to be freed individually before freeing the array. Christian Schoenebeck (2): hw/9pfs: avoid 'path' copy in v9fs_walk() hw/9pfs: use g_autofree in v9fs_walk() where possible hw/9pfs/9p.c | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) -- 2.20.1