tls: fix cert and pkey leak 34/43434/4
authorFlorin Coras <[email protected]>
Fri, 11 Jul 2025 03:27:08 +0000 (20:27 -0700)
committerDave Barach <[email protected]>
Tue, 15 Jul 2025 22:25:28 +0000 (22:25 +0000)
commita7da4d1184c3266062ec1daf910b03eaa9e39267
tree5651e2a242cd9eecd6f8cec65085318ad0456b03
parentf248a16c57933e8c7296576884f54bdd7288bb64
tls: fix cert and pkey leak

Free cert and pkey once assigned to make sure they're freed one the
ssl structs are freed.

Type: fix

Change-Id: I41546c8ae7bad169a1462b3b9a3807e4644a1c2c
Signed-off-by: Florin Coras <[email protected]>
src/plugins/tlsopenssl/tls_openssl.c