← Commit list

11c0aaa339

x2018
x2018
2025-11-17
SUCCESS Duration: 149s

Subject

openssl: fix a potential memory leak of bio_out

Binary

No binary (build failed)

Architecture & Compiler Flags

Architecture: x86_64-linux-gnu Compiler: gcc (Ubuntu 11.4.0-1ubuntu1~22.04.3) 11.4.0

—

Build Log

(log yok)

Commit Diff GitHub →

lib/vtls/openssl.c+1 -1
@@ -1625,8 +1625,8 @@ static CURLcode x509_name_oneline(X509_NAME *a, struct dynbuf *d)
if(rc != -1) {
BIO_get_mem_ptr(bio_out, &biomem);
result = curlx_dyn_addn(d, biomem->data, biomem->length);
- BIO_free(bio_out);
}
+ BIO_free(bio_out);
}
return result;
}