]> git.dujemihanovic.xyz Git - u-boot.git/commit
tools: env: Fix missing closedir in ubi_get_volnum_by_name
authorMiaoqian Lin <linmq006@gmail.com>
Mon, 19 Sep 2022 04:28:09 +0000 (08:28 +0400)
committerTom Rini <trini@konsulko.com>
Thu, 29 Sep 2022 14:10:39 +0000 (10:10 -0400)
commit316590db29b484209dbc3c3d60561168d0f7263c
tree29a5d599a2e2686d799c44f49bcb1406a59a3d2a
parentd2ab2a2bafd53ace79da900900d5220931c7ef5a
tools: env: Fix missing closedir in ubi_get_volnum_by_name

The function calls opendir() but missing the corresponding
closedir() before exit the function.
Add missing closedir() to fix it.

Signed-off-by: Miaoqian Lin <linmq006@gmail.com>
tools/env/fw_env.c