diff options
author | Michal Schmidt <mschmidt@redhat.com> | 2015-02-17 10:33:01 +0100 |
---|---|---|
committer | Michal Schmidt <mschmidt@redhat.com> | 2015-02-17 10:34:15 +0100 |
commit | 9c3cf9693ac5c0a332ba376f99e6adea28b1bb0d (patch) | |
tree | 6586dd6d4601ab58f547a4e3623912f1add79e81 /src/journal-remote/microhttpd-util.c | |
parent | a88abde72169ddc2df77df3fa5bed30725022253 (diff) |
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.
Diffstat (limited to 'src/journal-remote/microhttpd-util.c')
-rw-r--r-- | src/journal-remote/microhttpd-util.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/journal-remote/microhttpd-util.c b/src/journal-remote/microhttpd-util.c index 34d93379da..de9c6ab32d 100644 --- a/src/journal-remote/microhttpd-util.c +++ b/src/journal-remote/microhttpd-util.c @@ -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; } |