Message ID | 20201014080622.14970-5-richard.genoud@posteo.net |
---|---|
State | Superseded |
Delegated to: | Tom Rini |
Headers | show
Return-Path: <u-boot-bounces@lists.denx.de> X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=<UNKNOWN>) Authentication-Results: ozlabs.org; dmarc=pass (p=none dis=none) header.from=posteo.net Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; secure) header.d=posteo.net header.i=@posteo.net header.a=rsa-sha256 header.s=2017 header.b=KURmeJUU; dkim-atps=neutral Received: from phobos.denx.de (phobos.denx.de [IPv6:2a01:238:438b:c500:173d:9f52:ddab:ee01]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4CB4lh4Vkjz9sTv for <incoming@patchwork.ozlabs.org>; Wed, 14 Oct 2020 19:07:44 +1100 (AEDT) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id CE92B82374; Wed, 14 Oct 2020 10:07:14 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=posteo.net Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; secure) header.d=posteo.net header.i=@posteo.net header.b="KURmeJUU"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 26242823AC; Wed, 14 Oct 2020 10:07:07 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,RCVD_IN_MSPIKE_H4,RCVD_IN_MSPIKE_WL, SPF_HELO_NONE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.2 Received: from mout01.posteo.de (mout01.posteo.de [185.67.36.65]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 7B8BF823A5 for <u-boot@lists.denx.de>; Wed, 14 Oct 2020 10:07:03 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=posteo.net Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=richard.genoud@posteo.net Received: from submission (posteo.de [89.146.220.130]) by mout01.posteo.de (Postfix) with ESMTPS id BF1B7160062 for <u-boot@lists.denx.de>; Wed, 14 Oct 2020 10:07:02 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1602662822; bh=DRA/JbUghd6dvnPwZ0/X6dYasU/Qr795Q8vmy2OV7RU=; h=From:To:Cc:Subject:Date:From; b=KURmeJUUxjX4OXKRT+YVQXokHl1rdQbDCrvY3qasp3ugHcN6d6RraEJKKI+nk06QL fJo1WcPVY40YYowABEmZp27SpiszvmWAIC9FfFq9XkEAJBdpbVjSnS38Q1iSz/4mL1 /WEtnE1KeU5K+DTWUhDnG9Ulx1DLzLV+sFJxTeg1G1vcsYKYt27e3JuxihlnMBdZY2 Kpx32Ta2TM9EnxKdOvRywJDtRHm/CGHbmJAsTQMPMZRxfUuMg3hKUyYwbvtUyqWh9/ fYVng/crtPTM2ytKV2a2fpSwZ9/ox1as8INB8VV65Gt0JM/asz1O7DQCr8O1lIbWuG xZc9qFs0oBhCA== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4CB4ks4TFrz9rxf; Wed, 14 Oct 2020 10:07:01 +0200 (CEST) From: Richard Genoud <richard.genoud@posteo.net> To: Joao Marcos Costa <joaomarcos.costa@bootlin.com>, Thomas Petazzoni <thomas.petazzoni@bootlin.com>, Miquel Raynal <miquel.raynal@bootlin.com> Cc: u-boot@lists.denx.de, Richard Genoud <richard.genoud@posteo.net> Subject: [PATCH 04/17] fs/squashfs: sqfs_closedir: fix memory leak Date: Wed, 14 Oct 2020 10:06:09 +0200 Message-Id: <20201014080622.14970-5-richard.genoud@posteo.net> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20201014080622.14970-1-richard.genoud@posteo.net> References: <20201014080622.14970-1-richard.genoud@posteo.net> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.34 Precedence: list List-Id: U-Boot discussion <u-boot.lists.denx.de> List-Unsubscribe: <https://lists.denx.de/options/u-boot>, <mailto:u-boot-request@lists.denx.de?subject=unsubscribe> List-Archive: <https://lists.denx.de/pipermail/u-boot/> List-Post: <mailto:u-boot@lists.denx.de> List-Help: <mailto:u-boot-request@lists.denx.de?subject=help> List-Subscribe: <https://lists.denx.de/listinfo/u-boot>, <mailto:u-boot-request@lists.denx.de?subject=subscribe> Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" <u-boot-bounces@lists.denx.de> X-Virus-Scanned: clamav-milter 0.102.3 at phobos.denx.de X-Virus-Status: Clean |
Series |
fs/squashfs: fix memory leaks and introduce exists() function
|
expand
|
diff --git a/fs/squashfs/sqfs.c b/fs/squashfs/sqfs.c index b94a9715205..0ac922af9e7 100644 --- a/fs/squashfs/sqfs.c +++ b/fs/squashfs/sqfs.c @@ -1573,4 +1573,5 @@ void sqfs_closedir(struct fs_dir_stream *dirs) free(sqfs_dirs->inode_table); free(sqfs_dirs->dir_table); free(sqfs_dirs->dir_header); + free(sqfs_dirs); }
sqfs_dirs wasn't freed anywhere. Signed-off-by: Richard Genoud <richard.genoud@posteo.net> --- fs/squashfs/sqfs.c | 1 + 1 file changed, 1 insertion(+)