mirror of
https://gitlab.freedesktop.org/dbus/dbus.git
synced 2026-05-04 23:28:05 +02:00
Free envvar and args in pass_info in the oom case
This commit is contained in:
parent
4510983f13
commit
b1f947da1a
1 changed files with 5 additions and 1 deletions
|
|
@ -701,7 +701,11 @@ pass_info (const char *runprog, const char *bus_address, pid_t bus_pid,
|
|||
args = malloc (sizeof (char *) * ((argc-remaining_args)+2));
|
||||
|
||||
if (envvar == NULL || args == NULL)
|
||||
goto oom;
|
||||
{
|
||||
free (envvar);
|
||||
free (args);
|
||||
goto oom;
|
||||
}
|
||||
|
||||
args[0] = xstrdup (runprog);
|
||||
if (!args[0])
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue