From e6ec0495200e7276bfaa366f506ca2f7e685c5ad Mon Sep 17 00:00:00 2001 From: Dodji Seketeli Date: Thu, 18 Apr 2019 14:44:30 +0200 Subject: [PATCH] abg-tools-utils.cc: Plug a leak in find_file_under_dir We were forgetting to call fts_close on a file hierarchy returned by fts_open. Plugged thus. * src/abg-tools-utils.cc (find_file_under_dir): Call fts_close before return. Signed-off-by: Dodji Seketeli --- src/abg-tools-utils.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/abg-tools-utils.cc b/src/abg-tools-utils.cc index 9040a44..5645a09 100644 --- a/src/abg-tools-utils.cc +++ b/src/abg-tools-utils.cc @@ -1831,6 +1831,8 @@ find_file_under_dir(const string& root_dir, return true; } } + + fts_close(file_hierarchy); return false; } /// If we were given suppression specification files or kabi whitelist -- 2.7.4