summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAbhishek Vijay <abhishek.v@samsung.com>2020-07-13 16:48:54 +0530
committerAbhishek Vijay <abhishek.v@samsung.com>2020-07-13 16:48:54 +0530
commit26eda9819041516075f85cf3325939ae8fd29fc6 (patch)
treed59ff588e8a585bf83fc832a76f311de6f3e9a72
parent281b437192f5b7b62811635b917de598529c98d4 (diff)
downloadsync-manager-26eda9819041516075f85cf3325939ae8fd29fc6.tar.gz
sync-manager-26eda9819041516075f85cf3325939ae8fd29fc6.tar.bz2
sync-manager-26eda9819041516075f85cf3325939ae8fd29fc6.zip
Change-Id: I0e3a53f42a600dd71a22873f37290061729e2b76
-rw-r--r--src/sync-service/SyncManager_SyncService.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/sync-service/SyncManager_SyncService.cpp b/src/sync-service/SyncManager_SyncService.cpp
index 53be87b..0966a9e 100644
--- a/src/sync-service/SyncManager_SyncService.cpp
+++ b/src/sync-service/SyncManager_SyncService.cpp
@@ -984,6 +984,8 @@ sync_manager_add_sync_adapter(TizenSyncManager* pObject, GDBusMethodInvocation*
/* LCOV_EXCL_START */
LOG_LOGD("sync adapter aggregator is NULL");
tizen_sync_manager_complete_add_sync_adapter(pObject, pInvocation);
+ if (pAppId != NULL)
+ free(pAppId);
return true;
/* LCOV_EXCL_STOP */
}
@@ -1026,6 +1028,9 @@ sync_manager_add_sync_adapter(TizenSyncManager* pObject, GDBusMethodInvocation*
tizen_sync_manager_complete_add_sync_adapter(pObject, pInvocation);
}
+ if (pAppId != NULL)
+ free(pAppId);
+
return true;
} else {
check_jobs = true; /* Probably sync service may have started this service. Alert sync manager for scheduling pending jobs */
@@ -1090,6 +1095,9 @@ sync_manager_add_sync_adapter(TizenSyncManager* pObject, GDBusMethodInvocation*
LOG_LOGD("sync service: adding sync adapter ends");
+ if (pAppId != NULL)
+ free(pAppId);
+
return true;
}