Skip to content

Commit

Permalink
ddd-02-conn-nonblocking-threads.c: Fix the leak of conn
Browse files Browse the repository at this point in the history
Signed-off-by: zengwei zengwei1@uniontech.com

CLA: trivial

Reviewed-by: Tom Cosgrove <tom.cosgrove@arm.com>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from #23115)
  • Loading branch information
zengwei2000 authored and t8m committed Dec 29, 2023
1 parent 2618361 commit 1635d7a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions doc/designs/ddd/ddd-02-conn-nonblocking-threads.c
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,7 @@ APP_CONN *new_conn(SSL_CTX *ctx, const char *hostname)
if (SSL_set_alpn_protos(ssl, alpn, sizeof(alpn))) {
/* Note: SSL_set_alpn_protos returns 1 for failure. */
BIO_free_all(out);
free(conn);
return NULL;
}
#endif
Expand Down

0 comments on commit 1635d7a

Please sign in to comment.