about summary refs log tree commit diff
path: root/posix/execle.c
diff options
context:
space:
mode:
Diffstat (limited to 'posix/execle.c')
-rw-r--r--posix/execle.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/posix/execle.c b/posix/execle.c
index dff95b2c1f..33cd09f8a3 100644
--- a/posix/execle.c
+++ b/posix/execle.c
@@ -48,6 +48,7 @@ execle (const char *path, const char *arg, ...)
 	    {
 	      if (argv != initial_argv)
 		free (argv);
+	      va_end (args);
 	      return -1;
 	    }
 	  if (argv == initial_argv)