diff options
author | Ralf Habacker <ralf.habacker@freenet.de> | 2015-04-20 22:14:06 +0200 |
---|---|---|
committer | Ralf Habacker <ralf.habacker@freenet.de> | 2015-05-01 23:05:09 +0200 |
commit | 53fbfe0c706e020ed52bee0795fbb5436920317d (patch) | |
tree | acb0dfbcffe8dc83306100263b4e5f37b8e6684b /bus/activation.c | |
parent | e48dd5b3cadafb33fbf2fbd9749fd0a4e1a21a26 (diff) | |
download | dbus-53fbfe0c706e020ed52bee0795fbb5436920317d.tar.gz |
test_remove_directory: Fix 'variable iter going out of scope leaks the storage it points to' (CID 54729)
Reported by Coverity: CID 54729: Resource leak (RESOURCE_LEAK)
Bug: https://bugs.freedesktop.org/show_bug.cgi?id=90021
Reviewed-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
Diffstat (limited to 'bus/activation.c')
-rw-r--r-- | bus/activation.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/bus/activation.c b/bus/activation.c index fb25d68e..390b8362 100644 --- a/bus/activation.c +++ b/bus/activation.c @@ -2397,6 +2397,7 @@ test_remove_directory (DBusString *dir) if (!test_remove_service_file (dir, _dbus_string_get_const_data (&filename))) { ret_val = FALSE; + _dbus_directory_close (iter); goto out; } } |