[ITC][iotcon][NON-ACR][fix the crash]
authorJooseok Park <jooseok.park@samsung.com>
Mon, 6 Feb 2017 06:42:04 +0000 (15:42 +0900)
committerJooseok Park <jooseok.park@samsung.com>
Mon, 6 Feb 2017 06:44:45 +0000 (15:44 +0900)
 - uri_path in iotcon_resource_get_uri_path() shouldn't released by user.
 - please refer this API description

Change-Id: I257cb6eeb9963e7d4fcec2f0cfbf389750e4b3b8

src/itc/iotcon/ITs-iotcon-resource.c

index e8270b14992bb87e4829cf7280719eac7a883de6..8257507995059d91f47fc37a45d35e59bde59e1c 100644 (file)
@@ -1558,11 +1558,11 @@ int ITc_iotcon_resource_get_uri_path_p(void)
        if (strcmp(REMOTE_RESOURCE_LIGHT, uri) != 0)
        {
            IotconDestroyRes();
-               free(uri);
+               //free(uri);
                return 1;
        }
        IotconDestroyRes();
-       free(uri);
+       //free(uri);
     return 0;
 }