tls: Fix possible memory leak
PATCH 1/1 tls: Fix possible memory leak
ell/tls-suites.c:784:3: leaked_storage: Variable "other_public" going out of scope leaks the storage it points to.
--- ell/tls-suites.c | 1 + 1 file changed, 1 insertion(+)
ell/tls-suites.c +1 -0
@@ -781,6 +781,7 @@ static void tls_handle_ecdhe_client_key_xchg(struct l_tls *tls, &secret)) {TLS_DISCONNECT (TLS_ALERT_INTERNAL_ERROR ,0 ,"Generating ECDH shared-secret failed" ); +l_ecc_point_free (other_public);return ; }
Signature · 1 line
2.50.1
Denis Kenzior
AppliedHi Bastien,
Quoted 5 lines · Bastien Nocera
ell/tls-suites.c:784:3:leaked_storage: Variable "other_public" going out of scope leaks the storage it points to.--- ell/tls-suites.c | 1 + 1 file changed, 1 insertion(+)
Applied, thanks.
Regards,
-Denis