From 5195e2c34c33cc81fb4ca1995decf1b7dc863aab Mon Sep 17 00:00:00 2001 From: Guillaume Nault Date: Mon, 10 Dec 2012 13:29:01 +0100 Subject: Fix va_end() missing calls A few va_start() calls aren't followed by their corresponding va_end(). This patch adds the missing va_end() calls. Signed-off-by: Guillaume Nault --- accel-pppd/cli/cli.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'accel-pppd/cli') diff --git a/accel-pppd/cli/cli.c b/accel-pppd/cli/cli.c index 917634c9..90341cd3 100644 --- a/accel-pppd/cli/cli.c +++ b/accel-pppd/cli/cli.c @@ -54,6 +54,8 @@ void __export cli_register_simple_cmd2( c->hdr[i] = va_arg(ap, char *); list_add_tail(&c->entry, &simple_cmd_list); + + va_end(ap); } void __export cli_register_regexp_cmd(struct cli_regexp_cmd_t *cmd) -- cgit v1.2.3