mirror of
https://gitlab.freedesktop.org/dbus/dbus.git
synced 2026-05-02 16:38:13 +02:00
test_command_line_internal: Fix variable original_argv going out of scope leaks the storage it points to (CID 60588).
Reported by Coverity: CID 60588: 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
53fbfe0c70
commit
c396b8ea56
1 changed files with 3 additions and 3 deletions
|
|
@ -93,15 +93,15 @@ test_command_line_internal (dbus_bool_t should_work,
|
|||
dbus_free_string_array (shell_argv);
|
||||
}
|
||||
|
||||
_dbus_string_free (&str);
|
||||
dbus_free (original_argv);
|
||||
|
||||
if (!should_work)
|
||||
{
|
||||
printf ("# Expected an error\n");
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
_dbus_string_free (&str);
|
||||
dbus_free (original_argv);
|
||||
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue