Hi Markus & Thiago,

Has anyone written up a Jira ticket regarding this yet? If not, I will create 
one now.

Thanks,

Joey Morrow

-----Original Message-----
From: iotivity-dev-bounces at lists.iotivity.org 
[mailto:[email protected]] On Behalf Of Thiago Macieira
Sent: Tuesday, May 3, 2016 9:11 AM
To: markus.jung at samsung.com
Cc: iotivity-dev at lists.iotivity.org
Subject: Re: [dev] Fwd: About IotivityandZigbeeServer.c

Hello Markus

The reporter is correct and the code is wrong.

Em ter?a-feira, 3 de maio de 2016, ?s 03:28:21 PDT, Markus Jung escreveu:
> Hi,
> Thiago or Vijay could you have a look on this issue?
> Thanks
> Markus
>  
> ------- Original Message -------
> Sender : Annie Weng<annie.weng at u-media.com.tw> Date : May 03, 2016 
> 11:55 (GMT+09:00) Title : [dev] About IotivityandZigbeeServer.c
>  
> Hi,
> My colleague found something wired in IotivityandZigbeeServer.c.
> (plugins/samples/linux/IotivityandZigbeeServer.c) A pointer is freed 
> but it will be used.
> It is in function SetDeviceInfo(), as the red lines below.
>  
> OCStackResult SetDeviceInfo()
> {
>     static OCDeviceInfo deviceInfo =
>         {
>             .deviceName = "IoTivity/Zigbee Server Sample",
>         };
>     char *dup = OICStrdup("oic.wk.d");
>     deviceInfo.types = (OCStringLL *)OICCalloc(1, sizeof(OCStringLL));
>     deviceInfo.types->value = dup;
>     OICFree(dup);
>     return OCSetDeviceInfo(deviceInfo); }
>  
> Could someone help to check it?
>  
> Thank you & Best Regards,
> Annie
>  


--
Thiago Macieira - thiago.macieira (AT) intel.com
  Software Architect - Intel Open Source Technology Center

_______________________________________________
iotivity-dev mailing list
iotivity-dev at lists.iotivity.org
https://lists.iotivity.org/mailman/listinfo/iotivity-dev

Reply via email to