Merge pull request #1270 from sezrab/memory_allocation_cleanup_psa_crypto_rsa-development

Fix: Memory allocation cleanup in internal crypto api functions