[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH] Call va_end after processing ap

From: Aaron Conole
Subject: [PATCH] Call va_end after processing ap
Date: Mon, 02 May 2016 15:39:26 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1.50 (gnu/linux)

* gnutls.c (boot_error): A recent change added a function to signal an
error or return an error code. That function uses a variadic argument
list to populate an error message string. However, it missed calling
va_end after using the variadic argument list.

 src/gnutls.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/gnutls.c b/src/gnutls.c
index 57b164a..1089b1a 100644
--- a/src/gnutls.c
+++ b/src/gnutls.c
@@ -1181,6 +1181,7 @@ boot_error (struct Lisp_Process *p, const char *m, ...)
     pset_status (p, list2 (Qfailed, vformat_string (m, ap)));
     verror (m, ap);
+  va_end(ap);

reply via email to

[Prev in Thread] Current Thread [Next in Thread]