From c08ee575f82b1040d99e90e44449bbb83307d8a5 Mon Sep 17 00:00:00 2001 From: Dean Lee Date: Sat, 15 May 2021 08:33:46 +0800 Subject: [PATCH] read_files_in_dir: closedir before return (#20903) --- selfdrive/common/util.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/selfdrive/common/util.cc b/selfdrive/common/util.cc index 689a6a90..4d366a03 100644 --- a/selfdrive/common/util.cc +++ b/selfdrive/common/util.cc @@ -83,6 +83,7 @@ int read_files_in_dir(std::string path, std::map *cont } } + closedir(d); return 0; }