From 56b661cbf890a0d8f8324efeb24ed70e03dcb5e5 Mon Sep 17 00:00:00 2001 From: Hanno Becker Date: Wed, 12 Dec 2018 13:37:25 +0000 Subject: [PATCH] Add test that mbedtls_mpi_free() accepts NULL parameter --- tests/suites/test_suite_mpi.function | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/suites/test_suite_mpi.function b/tests/suites/test_suite_mpi.function index a82bf8181..ddab63e07 100644 --- a/tests/suites/test_suite_mpi.function +++ b/tests/suites/test_suite_mpi.function @@ -219,9 +219,10 @@ void mpi_invalid_param( ) TEST_INVALID_PARAM_RET( MBEDTLS_ERR_MPI_BAD_INPUT_DATA, mbedtls_mpi_inv_mod( NULL, &X, &X ) ); + mbedtls_mpi_free( NULL ); + exit: return; - } /* END_CASE */