mirror of
https://gitlab.freedesktop.org/dbus/dbus.git
synced 2026-04-18 12:00:37 +02:00
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>
This commit is contained in:
parent
e48dd5b3ca
commit
53fbfe0c70
1 changed files with 1 additions and 0 deletions
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue