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/src/worker.cpp b/vpd-manager/src/worker.cpp
index f81a9c1..e4033e1 100644
--- a/vpd-manager/src/worker.cpp
+++ b/vpd-manager/src/worker.cpp
@@ -107,7 +107,7 @@
                             INVENTORY_JSON_SYM_LINK);
     }
 
-    std::array<const char*, 1> interfaces = {
+    std::vector<std::string> interfaces = {
         "xyz.openbmc_project.Inventory.Item.Board.Motherboard"};
 
     const types::MapperGetObject& objectMap =
@@ -952,7 +952,7 @@
 {
     if (!dbusUtility::isChassisPowerOn())
     {
-        std::array<const char*, 1> l_operationalStatusInf = {
+        std::vector<std::string> l_operationalStatusInf = {
             constants::operationalStatusInf};
 
         auto mapperObjectMap = dbusUtility::getObjectMap(
@@ -991,7 +991,7 @@
 {
     if (!dbusUtility::isChassisPowerOn())
     {
-        std::array<const char*, 1> l_enableInf = {constants::enableInf};
+        std::vector<std::string> l_enableInf = {constants::enableInf};
 
         auto mapperObjectMap =
             dbusUtility::getObjectMap(i_inventoryObjPath, l_enableInf);