[JIRA Issue - 1092] IoTivity Zigbee sample application wrongly freeing memory
[platform/upstream/iotivity.git] / plugins / samples / linux / IotivityandZigbeeServer.c
index dc011aa..b978074 100644 (file)
@@ -139,11 +139,12 @@ OCStackResult SetDeviceInfo()
     static OCDeviceInfo deviceInfo =
         {
             .deviceName = "IoTivity/Zigbee Server Sample",
+            .specVersion = "IoTivity/Zigbee Device Spec Version",
+            .dataModleVersion = "IoTivity/Zigbee Data Model Version",
         };
     char *dup = OICStrdup("oic.wk.d");
     deviceInfo.types = (OCStringLL *)OICCalloc(1, sizeof(OCStringLL));
     deviceInfo.types->value = dup;
-    OICFree(dup);
     return OCSetDeviceInfo(deviceInfo);
 }