Commit c396b8ea authored by Ralf Habacker's avatar Ralf Habacker

test_command_line_internal: Fix variable original_argv going out of scope...

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=90021Reviewed-by: default avatarSimon McVittie <simon.mcvittie@collabora.co.uk>
parent 53fbfe0c
......@@ -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;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment