ssl_client2: move memory leak check before rng_free()
ssl_client2: move memory leak check before rng_free()

Signed-off-by: Przemyslaw Stekiel <1d381786fa074b2f2333843496828c8e4357e75f@mobica.com>

Mbed-TLS/mbedtls,ARMmbed/mbedtls,NXPmicro/mbedtls,ARMmbed/mbedtls,Mbed-TLS/mbedtls,ARMmbed/mbedtls,Mbed-TLS/mbedtls,NXPmicro/mbedtls,NXPmicro/mbedtls,Mbed-TLS/mbedtls,NXPmicro/mbedtls,ARMmbed/mbedtls