summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhilip Withnall <philip.withnall@collabora.co.uk>2014-05-16 22:09:29 +0100
committerPhilip Withnall <philip.withnall@collabora.co.uk>2014-05-20 11:01:37 +0100
commite1243d11f000e18436b439f5655532801a71aeec (patch)
treed0fb9061eabb05f00301397e5ce4f2cf2c2e8bb1
parentf4ae0cbf9a464122ed4207a8ee74e424851d9bdf (diff)
gsubprocess: Add a missing va_end() call
Coverity issues: #1214070, #1214069 https://bugzilla.gnome.org/show_bug.cgi?id=730278
-rw-r--r--gio/gsubprocess.c1
-rw-r--r--gio/gsubprocesslauncher.c1
2 files changed, 2 insertions, 0 deletions
diff --git a/gio/gsubprocess.c b/gio/gsubprocess.c
index f77436c71..22e7498d4 100644
--- a/gio/gsubprocess.c
+++ b/gio/gsubprocess.c
@@ -686,6 +686,7 @@ g_subprocess_new (GSubprocessFlags flags,
while ((arg = va_arg (ap, const gchar *)))
g_ptr_array_add (args, (gchar *) arg);
g_ptr_array_add (args, NULL);
+ va_end (ap);
result = g_subprocess_newv ((const gchar * const *) args->pdata, flags, error);
diff --git a/gio/gsubprocesslauncher.c b/gio/gsubprocesslauncher.c
index c40d17d80..8c61b9d71 100644
--- a/gio/gsubprocesslauncher.c
+++ b/gio/gsubprocesslauncher.c
@@ -703,6 +703,7 @@ g_subprocess_launcher_spawn (GSubprocessLauncher *launcher,
g_ptr_array_add (args, (gchar *) arg);
g_ptr_array_add (args, NULL);
+ va_end (ap);
result = g_subprocess_launcher_spawnv (launcher, (const gchar * const *) args->pdata, error);