summaryrefslogtreecommitdiff
path: root/dbus/dbus-spawn-win.c
diff options
context:
space:
mode:
Diffstat (limited to 'dbus/dbus-spawn-win.c')
-rw-r--r--dbus/dbus-spawn-win.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/dbus/dbus-spawn-win.c b/dbus/dbus-spawn-win.c
index 6037b9d1..8372a92a 100644
--- a/dbus/dbus-spawn-win.c
+++ b/dbus/dbus-spawn-win.c
@@ -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];