From 0910fe45f88ae79e6e44d1a240ad4f39d55dcb98 Mon Sep 17 00:00:00 2001 From: Ralf Habacker Date: Mon, 20 Apr 2015 22:14:06 +0200 Subject: [PATCH 2/2] 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) --- bus/activation.c | 1 + 1 file changed, 1 insertion(+) diff --git a/bus/activation.c b/bus/activation.c index fb25d68..390b836 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; } } -- 1.8.4.5