]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
BUG/MINOR: ssl: Stop leaking `err` in ssl_sock_load_ocsp()
authorTim Duesterhus <tim@bastelstu.be>
Sun, 19 Mar 2023 15:07:47 +0000 (16:07 +0100)
committerWilliam Lallemand <wlallemand@haproxy.org>
Tue, 28 Mar 2023 09:09:12 +0000 (11:09 +0200)
Previously performing a config check of `.github/h2spec.config` would report a
20 byte leak as reported in GitHub Issue #2082.

The leak was introduced in a6c0a59e9af65180c3ff591b91855bea8d19b352, which is
dev only. No backport needed.

src/ssl_sock.c

index 5993a72b0647fc46ca163bdc31f3a82ac8e36c5d..801543cb7786df9016aaf01db6b3ece2d5b2f389 100644 (file)
@@ -1296,6 +1296,8 @@ out:
        if (warn)
                free(warn);
 
+       free(err);
+
        return ret;
 }