Fix memory leak in protect_argv() in case of memory shortage

This commit is contained in:
Ralf Habacker 2021-12-04 13:53:57 +01:00
parent b9a7744310
commit 4e4d932fd9

View file

@ -417,8 +417,10 @@ protect_argv (char * const *argv,
q = args[i] = dbus_malloc (len + need_dblquotes*2 + 1);
if (q == NULL)
return -1;
{
dbus_free_string_array (args);
return -1;
}
p = argv[i];