Merge branch 'master' into easysetup and fixed OCStack issue
[iotivity.git] / resource / csdk / stack / src / ocstack.c
index 415e8fb..53dc469 100644 (file)
@@ -1876,7 +1876,7 @@ static OCStackResult ParseRequestUri(const char *fullUri,
             }
         }
 
-        da = (OCDevAddr *)OICMalloc(sizeof (OCDevAddr));
+        da = (OCDevAddr *)OICCalloc(1, sizeof (OCDevAddr));
         if (!da)
         {
             return OC_STACK_NO_MEMORY;