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 <dodji@redhat.com>
This commit is contained in:
Dodji Seketeli 2019-04-18 14:44:30 +02:00
parent 177f76ee3b
commit e6ec049520

View File

@ -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