commit | a9bcc2a093d35f528ab994dc8f6a5723af12fe82 | [log] [tgz] |
---|---|---|
author | Heiko Stuebner <heiko.stuebner@theobroma-systems.com> | Thu Jun 18 16:23:25 2020 +0200 |
committer | Tom Rini <trini@konsulko.com> | Wed Jul 08 17:21:46 2020 -0400 |
tree | 76ef58531014b3aa70cfb79ed5551b8355afee80 | |
parent | ad841534a56d6eea07183ab59d46ab6d6d87626c [diff] |
lib: rsa: free local arrays after use in rsa_gen_key_prop() n, rr and rrtmp are used for internal calculations, but in the end the results are copied into separately allocated elements of the actual key_prop, so the n, rr and rrtmp elements are not used anymore when returning from the function and should of course be freed. Signed-off-by: Heiko Stuebner <heiko.stuebner@theobroma-systems.com> Reviewed-by: Simon Glass <sjg@chromium.org>