diff options
author | Philip Withnall <philip.withnall@collabora.co.uk> | 2014-05-16 22:09:29 +0100 |
---|---|---|
committer | Philip Withnall <philip.withnall@collabora.co.uk> | 2014-05-20 11:01:37 +0100 |
commit | e1243d11f000e18436b439f5655532801a71aeec (patch) | |
tree | d0fb9061eabb05f00301397e5ce4f2cf2c2e8bb1 | |
parent | f4ae0cbf9a464122ed4207a8ee74e424851d9bdf (diff) |
gsubprocess: Add a missing va_end() call
-rw-r--r-- | gio/gsubprocess.c | 1 | ||||
-rw-r--r-- | gio/gsubprocesslauncher.c | 1 |
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); |