From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from list by lists.gnu.org with archive (Exim 4.90_1) id 1owLHA-0002UL-0d for mharc-grub-devel@gnu.org; Sat, 19 Nov 2022 05:40:44 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1owLH7-0002Sy-CN for grub-devel@gnu.org; Sat, 19 Nov 2022 05:40:41 -0500 Received: from szxga01-in.huawei.com ([45.249.212.187]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1owLH0-0008GT-1h for grub-devel@gnu.org; Sat, 19 Nov 2022 05:40:41 -0500 Received: from dggemv704-chm.china.huawei.com (unknown [172.30.72.56]) by szxga01-in.huawei.com (SkyGuard) with ESMTP id 4NDqnj3fYxzqSQN; Sat, 19 Nov 2022 18:36:25 +0800 (CST) Received: from kwepemm600019.china.huawei.com (7.193.23.64) by dggemv704-chm.china.huawei.com (10.3.19.47) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.31; Sat, 19 Nov 2022 18:40:16 +0800 Received: from huawei.com (10.44.134.232) by kwepemm600019.china.huawei.com (7.193.23.64) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.31; Sat, 19 Nov 2022 18:40:15 +0800 From: t.feng To: CC: , , , Subject: [PATCH 0/9] fix memory leaks in fs module Date: Sat, 19 Nov 2022 18:39:37 +0800 Message-ID: <20221119103946.657744-1-fengtao40@huawei.com> X-Mailer: git-send-email 2.27.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Originating-IP: [10.44.134.232] X-ClientProxiedBy: dggems703-chm.china.huawei.com (10.3.19.180) To kwepemm600019.china.huawei.com (7.193.23.64) X-CFilter-Loop: Reflected Received-SPF: pass client-ip=45.249.212.187; envelope-from=fengtao40@huawei.com; helo=szxga01-in.huawei.com X-Spam_score_int: -41 X-Spam_score: -4.2 X-Spam_bar: ---- X-Spam_report: (-4.2 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: The development of GNU GRUB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 19 Nov 2022 10:40:41 -0000 Hi all, I am doing code review in grub-core/fs module and I found some memory leaks. ************************* t.feng (9): fs/affs:Fix memory leaks in grub_affs_create_node fs/btrfs: Fix memory leak in find_path fs/minix: Fix memory leak in grub_minix_lookup_symlink fs/ntfs: Fix memory leak in grub_ntfs_read_symlink fs/bfs: Fix memory leak in read_bfs_file fs/hfsplus: Fix memory leak in grub_hfsplus_btree_search fs/iso9660: Fix memory leak in grub_iso9660_susp_iterate fs/squash4: Fix memeory leak in grub_squash_iterate_dir fs/xfs: Fix memory leaks in xfs grub-core/fs/affs.c | 11 +++-------- grub-core/fs/bfs.c | 2 ++ grub-core/fs/btrfs.c | 7 ++++++- grub-core/fs/hfsplus.c | 5 ++++- grub-core/fs/iso9660.c | 10 ++++++++-- grub-core/fs/minix.c | 11 +++++++++-- grub-core/fs/ntfs.c | 26 ++++++++++++++++++++++---- grub-core/fs/squash4.c | 20 ++++++++++++++++---- grub-core/fs/xfs.c | 11 +++++++++-- 9 files changed, 79 insertions(+), 24 deletions(-) -- 2.27.0