Commit 9a9c5041 authored by shinmao's avatar shinmao
Browse files

add missed free() on error

add free statement if error occurs in `SSL_set_tlsext_status_ocsp_resp()`
parent 1ab42213
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -2881,6 +2881,10 @@ impl SslRef {
                response.len() as c_long,
            ) as c_int)
            .map(|_| ())
            .map_err(|e| {
                ffi::OPENSSL_free(p)
                e
            })
        }
    }