chiark / gitweb /
core: call va_end in all cases
[elogind.git] / src / core / selinux-access.c
index 8a8407174039fb584118a1f17e9d00bef704af4a..8513634f965bc9758d4e7d32cb8ed79d155545f0 100644 (file)
@@ -276,6 +276,7 @@ static int log_callback(int type, const char *fmt, ...)
                 vsnprintf(buf, sizeof(buf), fmt, ap);
                 audit_log_user_avc_message(audit_fd, AUDIT_USER_AVC,
                                            buf, NULL, NULL, NULL, 0);
+                va_end(ap);
                 return 0;
         }
 #endif