diff options
author | Andrii Simiklit <andrii.simiklit@globallogic.com> | 2018-09-06 17:43:51 +0300 |
---|---|---|
committer | Dylan Baker <dylan@pnwbakers.com> | 2018-09-07 10:16:55 -0700 |
commit | 019ff6b453077b9e0332b75bd743b5134c957c1a (patch) | |
tree | 959997128a5859904ab152c0995091267001bbf3 | |
parent | b14c2b467d96f9fc5153db22bc45d4b884535e55 (diff) |
apple/glx/log: added missing va_end() after va_copy()
Each invocation of va_copy() must be matched by a
corresponding invocation of va_end()
Reviewed-by: Eric Engestrom <eric.engestrom@intel.com>
Fixes: 51691f0767f6 "darwin: Use ASL for logging"
Signed-off-by: Andrii Simiklit <andrii.simiklit@globallogic.com>
(cherry picked from commit 267ed29288db478a47d180bd1370a4df60ddb3ef)
-rw-r--r-- | src/glx/apple/apple_glx_log.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/glx/apple/apple_glx_log.c b/src/glx/apple/apple_glx_log.c index a3f446c26f2..ea39d30954e 100644 --- a/src/glx/apple/apple_glx_log.c +++ b/src/glx/apple/apple_glx_log.c @@ -97,6 +97,7 @@ void _apple_glx_vlog(int level, const char *file, const char *function, fprintf(stderr, "%-9s %24s:%-4d %s(%"PRIu64"): ", _asl_level_string(level), file, line, function, thread); vfprintf(stderr, fmt, args2); + va_end(args2); } msg = asl_new(ASL_TYPE_MSG); |