Skip to content

Commit 11c0aaa

Browse files
x2018bagder
authored andcommitted
openssl: fix a potential memory leak of bio_out
Closes curl#19561
1 parent 22b8a64 commit 11c0aaa

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/vtls/openssl.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1625,8 +1625,8 @@ static CURLcode x509_name_oneline(X509_NAME *a, struct dynbuf *d)
16251625
if(rc != -1) {
16261626
BIO_get_mem_ptr(bio_out, &biomem);
16271627
result = curlx_dyn_addn(d, biomem->data, biomem->length);
1628-
BIO_free(bio_out);
16291628
}
1629+
BIO_free(bio_out);
16301630
}
16311631
return result;
16321632
}

0 commit comments

Comments
 (0)