crypto/caam_jr: fix memory leak and illegal access