Commit c89cbed9 authored by Simon McVittie's avatar Simon McVittie

selinux: avoid leaking on systems where va_start allocates memory

Bug: https://bugs.freedesktop.org/show_bug.cgi?id=88087
parent 1650d77b
......@@ -157,12 +157,14 @@ log_callback (const char *fmt, ...)
vsnprintf(buf, sizeof(buf), fmt, ap);
audit_log_user_avc_message(audit_fd, AUDIT_USER_AVC, buf, NULL, NULL,
NULL, getuid());
return;
goto out;
}
}
#endif /* HAVE_LIBAUDIT */
vsyslog (LOG_USER | LOG_INFO, fmt, ap);
out:
va_end(ap);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment