projects
/
platform
/
upstream
/
dbus.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e48dd5b
)
test_remove_directory: Fix 'variable iter going out of scope leaks the storage it...
author
Ralf Habacker
<ralf.habacker@freenet.de>
Mon, 20 Apr 2015 20:14:06 +0000
(22:14 +0200)
committer
Ralf Habacker
<ralf.habacker@freenet.de>
Fri, 1 May 2015 21:05:09 +0000
(23:05 +0200)
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>
bus/activation.c
patch
|
blob
|
history
diff --git
a/bus/activation.c
b/bus/activation.c
index
fb25d68
..
390b836
100644
(file)
--- 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;
}
}