Clean-up config_ramstore deletion

The config_ramstore component uses malloc for each loaded config
object. Ctor/dtor functions config_container_create and
config_container_delete exist but config_container_delete is
not used during config store tear-down. This change explicitly
calls config_container_delete rather than just called free()
directly.

Signed-off-by: Julian Hall <julian.hall@arm.com>
Change-Id: I7b69ea1878e4c227b198d4685610ad25dbd99e97
diff --git a/components/config/ramstore/config_ramstore.c b/components/config/ramstore/config_ramstore.c
index 42d749e..f3255fb 100644
--- a/components/config/ramstore/config_ramstore.c
+++ b/components/config/ramstore/config_ramstore.c
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2021, Arm Limited and Contributors. All rights reserved.
+ * Copyright (c) 2021-2022, Arm Limited and Contributors. All rights reserved.
  *
  * SPDX-License-Identifier: BSD-3-Clause
  */
@@ -72,7 +72,7 @@
 	while (ramstore.object_list) {
 
 		struct config_container *next = ramstore.object_list->next;
-		free(ramstore.object_list);
+		config_container_destroy(ramstore.object_list);
 		ramstore.object_list = next;
 	}
 }