Use std::vector<string> to get D-Bus object list

Replace std::array<const char*, N> with std::vector<std::string> to
retrieve the D-Bus object list, fixing the free-noheap-object CI error.

Change-Id: Ie48d691aee1a9f595439ad59e844e2a0857a2085
Signed-off-by: Anupama B R <anupama.b.r1@ibm.com>
diff --git a/vpd-manager/include/utility/dbus_utility.hpp b/vpd-manager/include/utility/dbus_utility.hpp
index c155d0c..41ff05c 100644
--- a/vpd-manager/include/utility/dbus_utility.hpp
+++ b/vpd-manager/include/utility/dbus_utility.hpp
@@ -26,12 +26,12 @@
  * generate appropriate error.
  *
  * @param [in] objectPath - Object path under the service.
- * @param [in] interfaces - Array of interface(s).
+ * @param [in] interfaces - Vector of interface(s).
  * @return - A Map of service name to object to interface(s), if success.
  *           If failed,  empty map.
  */
-inline types::MapperGetObject getObjectMap(const std::string& objectPath,
-                                           std::span<const char*> interfaces)
+inline types::MapperGetObject getObjectMap(
+    const std::string& objectPath, const std::vector<std::string>& interfaces)
 {
     types::MapperGetObject getObjectMap;