LWNode_Release_220923_1e412e17 01/281901/1 accepted/tizen_7.0_unified accepted/tizen_7.0_unified_hotfix accepted/tizen_8.0_unified tizen_7.0 tizen_7.0_hotfix tizen_8.0 accepted/tizen/7.0/unified/20221110.062112 accepted/tizen/7.0/unified/hotfix/20221116.110311 accepted/tizen/8.0/unified/20231005.094355 accepted/tizen/unified/20220925.234912 accepted/tizen/unified/20220925.234942 accepted/tizen/unified/20220926.025504 accepted/tizen/unified/dev/20240620.010435 tizen_7.0_m2_release tizen_8.0_m2_release
authorDaeyeon Jeong <daeyeon.jeong@samsung.com>
Fri, 23 Sep 2022 05:41:39 +0000 (14:41 +0900)
committerDaeyeon Jeong <daeyeon.jeong@samsung.com>
Fri, 23 Sep 2022 05:41:39 +0000 (14:41 +0900)
Change-Id: Ib1e5284588e75548ecd75918cd22ace30463b3ff
Signed-off-by: Daeyeon Jeong daeyeon.jeong@samsung.com
deps/node/src/lwnode/aul-event-receiver.cc

index b4af77b5e937a05e7d1898d2f416e585a41a6c81..f556c41be347c648c7a7b1edef6f57c0c7af18af 100644 (file)
@@ -86,10 +86,13 @@ bool AULEventReceiver::start(int argc, char* argv[]) {
 
     LWNODE_DEV_LOG("appid: ", appid_);
 
-    if (uv_chdir(app_get_resource_path()) != 0) {
+    char* path = app_get_resource_path();
+    if (uv_chdir(path) != 0) {
       LWNODE_DEV_LOGF("ERROR: Failed to change directory. (%d)", -errno);
+      free(path);
       exit(-errno);
     }
+    free(path);
     return isEventReceiverRunning_;
   }