Fix potential double-free in ssl_set_psk()

Internal ref: IOTSSL-517
2 files changed