Manuel Pégourié-Gonnard
feb0396d20
Fix memory leak in test_suite_x509write with PSA crypto
...
The documentation of mbedtls_pk_wrap_as_opaque is quite clear:
* \param handle Output: a PSA key handle.
* It's the caller's responsibility to call
* psa_destroy_key() on that handle after calling
* mbedtls_pk_free() on the PK context.
But the test failed to call psa_destroy_key().
While at it, also use PSA_DONE(): it ensures that if we fail to destroy the
key, we'll get an explicit error message about it without the need for
valgrind.
This is a preliminary to adding a valgrind-based test for constant-flow code:
we need to make sure the rest of the tests are fully valgrind-clean, which
they weren't.
Signed-off-by: Manuel Pégourié-Gonnard <manuel.pegourie-gonnard@arm.com>
2020-08-20 10:21:32 +02:00
..
2020-06-12 14:33:08 +02:00
2020-06-26 10:45:16 +02:00
2020-06-18 13:01:38 +02:00
2020-06-26 10:45:16 +02:00
2019-08-15 15:44:50 +01:00
2019-08-15 15:44:50 +01:00
2019-08-15 15:44:50 +01:00
2020-06-26 10:45:16 +02:00
2019-08-15 15:44:50 +01:00
2019-08-15 15:44:50 +01:00
2019-08-15 15:44:50 +01:00
2019-08-15 15:44:50 +01:00
2020-06-12 14:33:08 +02:00
2019-09-20 15:58:27 +02:00
2020-06-26 10:45:16 +02:00
2020-02-05 15:40:22 +00:00
2020-02-05 15:40:22 +00:00
2019-10-31 19:17:36 +02:00
2019-10-31 19:17:36 +02:00
2019-08-15 15:44:50 +01:00
2020-06-12 14:33:08 +02:00
2019-09-20 15:59:31 +02:00
2020-06-12 14:33:08 +02:00
2019-09-20 15:59:31 +02:00
2020-06-12 14:33:08 +02:00
2019-08-15 15:44:50 +01:00
2020-06-26 10:45:16 +02:00
2019-08-15 15:44:50 +01:00
2020-06-26 10:45:16 +02:00
2019-08-15 15:44:50 +01:00
2020-06-26 10:45:16 +02:00
2020-03-24 13:18:58 -04:00
2019-09-20 15:59:31 +02:00
2019-07-29 17:46:29 +02:00
2019-09-20 15:59:31 +02:00
2020-03-24 13:18:58 -04:00
2019-08-15 15:44:50 +01:00
2019-08-15 15:44:50 +01:00
2019-08-15 15:44:50 +01:00
2019-09-20 15:59:31 +02:00
2020-06-26 10:45:16 +02:00
2020-06-26 22:40:58 +02:00
2019-08-15 15:44:50 +01:00
2019-09-20 16:01:59 +02:00
2019-09-20 15:59:31 +02:00
2019-08-15 15:44:50 +01:00
2019-08-15 15:44:50 +01:00
2019-08-15 15:44:50 +01:00
2019-11-21 13:49:20 +01:00
2020-06-12 14:33:08 +02:00
2020-03-19 14:17:54 +01:00
2020-03-19 14:17:54 +01:00
2019-08-15 15:44:50 +01:00
2020-06-12 14:33:08 +02:00
2019-09-20 15:59:31 +02:00
2020-06-12 14:33:08 +02:00
2019-08-15 15:44:50 +01:00
2020-06-26 10:45:16 +02:00
2020-01-06 11:40:23 +01:00
2020-06-26 10:45:16 +02:00
2019-08-15 15:44:50 +01:00
2020-06-12 14:33:08 +02:00
2020-07-13 11:48:21 +02:00
2020-07-13 11:48:21 +02:00
2019-10-08 15:01:34 +02:00
2020-04-14 21:32:53 +02:00
2015-04-08 13:25:31 +02:00
2018-08-06 11:40:57 +01:00
2019-09-20 15:59:31 +02:00
2019-09-20 15:59:31 +02:00
2019-09-20 15:59:31 +02:00
2019-09-20 15:59:31 +02:00
2019-09-20 15:59:31 +02:00
2019-09-20 15:59:31 +02:00
2019-08-15 15:44:50 +01:00
2020-06-12 14:33:08 +02:00
2019-08-15 15:44:50 +01:00
2019-08-15 15:44:50 +01:00
2020-06-26 10:45:16 +02:00
2020-06-12 14:33:08 +02:00
2020-01-06 11:40:23 +01:00
2020-01-06 11:40:23 +01:00
2020-01-06 11:40:23 +01:00
2020-01-06 11:40:23 +01:00
2020-01-06 11:40:23 +01:00
2020-06-12 14:33:08 +02:00
2019-08-15 15:44:50 +01:00
2020-06-12 14:33:08 +02:00
2019-10-31 15:07:35 +01:00
2019-10-31 15:07:45 +01:00
2020-02-06 09:52:01 +01:00
2020-06-12 14:33:08 +02:00
2019-09-20 15:59:31 +02:00
2020-06-26 10:45:16 +02:00
2019-08-15 15:44:50 +01:00
2019-08-15 15:44:50 +01:00
2019-08-15 15:44:50 +01:00
2019-08-15 15:44:50 +01:00
2020-07-02 16:59:30 +01:00
2020-07-02 16:59:30 +01:00
2019-08-15 15:44:50 +01:00
2020-06-12 14:33:08 +02:00
2019-09-20 15:58:54 +02:00
2020-06-12 14:33:08 +02:00
2020-01-06 11:40:23 +01:00
2020-06-12 14:33:08 +02:00
2020-02-18 10:31:29 +01:00
2020-02-18 10:18:43 +01:00
2019-11-05 15:32:53 +01:00
2019-08-15 15:44:50 +01:00
2019-08-15 15:44:50 +01:00
2020-06-26 10:45:16 +02:00
2018-11-21 16:24:53 +02:00
2020-06-10 16:03:05 +02:00
2020-01-06 11:40:23 +01:00
2020-06-10 16:03:05 +02:00
2019-10-23 19:47:05 +02:00
2020-06-10 16:03:05 +02:00
2020-07-07 09:20:44 +02:00
2020-07-02 16:59:49 +01:00
2020-01-31 10:24:21 +01:00
2020-06-10 16:03:05 +02:00
2020-05-11 11:15:26 +02:00
2020-06-10 16:03:05 +02:00
2020-07-02 16:59:30 +01:00
2020-07-02 16:59:30 +01:00
2020-07-02 16:59:30 +01:00
2020-06-16 14:34:55 +01:00
2020-08-05 17:38:47 +02:00
2020-07-30 15:35:14 +02:00
2019-03-15 11:37:09 +01:00
2020-06-10 16:03:05 +02:00
2020-01-07 10:24:17 +01:00
2020-06-12 14:33:08 +02:00
2020-01-06 11:40:23 +01:00
2020-06-12 14:33:08 +02:00
2020-08-19 11:56:02 +02:00
2020-08-19 11:56:02 +02:00
2019-08-15 15:44:50 +01:00
2019-08-15 15:44:50 +01:00
2020-06-29 22:41:30 +01:00
2020-04-22 16:01:48 +02:00
2020-08-06 17:12:03 +02:00
2020-06-17 17:59:49 +02:00
2020-03-23 17:55:32 +01:00
2020-08-20 10:21:32 +02:00
2019-08-15 15:44:50 +01:00
2020-06-12 14:33:08 +02:00