projects
/
platform
/
upstream
/
libabigail.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
177f76e
)
abg-tools-utils.cc: Plug a leak in find_file_under_dir
author
Dodji Seketeli
<dodji@redhat.com>
Thu, 18 Apr 2019 12:44:30 +0000
(14:44 +0200)
committer
Dodji Seketeli
<dodji@redhat.com>
Thu, 18 Apr 2019 12:44:30 +0000
(14:44 +0200)
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>
src/abg-tools-utils.cc
patch
|
blob
|
history
diff --git
a/src/abg-tools-utils.cc
b/src/abg-tools-utils.cc
index 9040a44a6c39d94e4c8073a00955cbddb0d8bf6c..5645a09349862e465a4b9545aeabcd350253d4fd 100644
(file)
--- 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