projects
/
platform
/
upstream
/
dbus.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4510983
)
Free envvar and args in pass_info in the oom case
author
Christian Dywan
<christian.dywan@lanedo.com>
Tue, 20 Jul 2010 10:50:23 +0000
(12:50 +0200)
committer
Will Thompson
<will.thompson@collabora.co.uk>
Tue, 5 Oct 2010 12:47:07 +0000
(13:47 +0100)
tools/dbus-launch.c
patch
|
blob
|
history
diff --git
a/tools/dbus-launch.c
b/tools/dbus-launch.c
index 6fa9c92bf22c2c4c5d7c4e2675889e1022985c4d..ce9c7b1c1fe6455af90d32fca315c4ae2d5006e0 100644
(file)
--- a/
tools/dbus-launch.c
+++ b/
tools/dbus-launch.c
@@
-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])