mirror of
https://github.com/clearlinux/systemd-stable.git
synced 2026-09-06 13:41:31 +00:00
journal-remote: fix certificate status memory leak
The output of gnutls_certificate_verification_status_print() needs to be freed. Noticed this while staring at verify_cert_authorized() to see what could possibly confuse gcc5 on armv7hl to segfault during compilation.
This commit is contained in:
@@ -179,6 +179,7 @@ static int verify_cert_authorized(gnutls_session_t session) {
|
||||
return log_error_errno(r, "gnutls_certificate_verification_status_print failed: %m");
|
||||
|
||||
log_info("Certificate status: %s", out.data);
|
||||
gnutls_free(out.data);
|
||||
|
||||
return status == 0 ? 0 : -EPERM;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user