mirror of
git://sourceware.org/git/libabigail.git
synced 2025-01-20 16:30:44 +00:00
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:
parent
177f76ee3b
commit
e6ec049520
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user