[Internal: Prevent fixed - 50967, 38040, 26642]
authorJooHark Park <juhaki.park@samsung.com>
Fri, 19 Apr 2013 02:41:41 +0000 (11:41 +0900)
committerJooHark Park <juhaki.park@samsung.com>
Fri, 19 Apr 2013 02:41:41 +0000 (11:41 +0900)
=====================================
[Problem]
-
[Cause]
-
[Solution]
- Prevent fixed - 50967, 38040, 26642
=====================================

Change-Id: I4889e8b1be38a6744d9c9c31cf89027c78045586

debian/changelog
packaging/sync-agent.spec
src/framework/device-manager/mo_database_handler.c
src/framework/event/handler.c
src/fw-plugins/common-public/calendar/src/plugin_interface.c
src/fw-plugins/common-public/task/src/plugin_interface.c

index 4fbc424..74f5281 100755 (executable)
@@ -1,3 +1,11 @@
+sync-agent (0.1.88) unstable; urgency=low
+
+  * 1. Prevent fixed. 50967, 38040, 26642
+  * Git: framework/system/sync-agent
+  * Tag: sync-agent_0.1.88
+
+ -- Juhaki Park <juhaki.park@samsung.com>  Fri, 19 Apr 2013 11:19:44 +0900
+
 sync-agent (0.1.87) unstable; urgency=low
 
   * 1. PLM P130412-7652 : oma-dm-agent BS patch.
index 72546cc..a23f7e1 100755 (executable)
@@ -1,6 +1,6 @@
 Name:       sync-agent
 Summary:    Sync agent FW Library
-Version:    0.1.87
+Version:    0.1.88
 Release:    1
 Group:      TO_BE/FILLED_IN
 License:    Apache License, Version 2.0
index 242f579..d032641 100755 (executable)
@@ -615,6 +615,10 @@ sync_agent_dm_mo_error_e _add_agent_handler(unsigned int key, SYNC_AGENT_DA_MO_H
  addagentHandler:
        pthread_mutex_unlock(pMoDBHandlerMgr->mo_handlerTable_mutex);
 
+       if(pKey_copy != NULL) {
+               free(pKey_copy);
+               pKey_copy = NULL;
+       }
        _INNER_FUNC_EXIT;
 
        return ret;
index dcb3a5d..5122843 100755 (executable)
@@ -304,8 +304,8 @@ static void *_event_listener(void *arg)
 
                memset(inbuf, 0x00, EVENT_MAX_STREAM_SIZE + 1);
                memset(outbuf, 0x00, EVENT_MAX_STREAM_SIZE + 1);
-               sync_agent_event_data_s request;
-               sync_agent_event_data_s response;
+               sync_agent_event_data_s request = {0,NULL,NULL};
+               sync_agent_event_data_s response = {0,NULL,NULL};
 
                request.data = inbuf;
                response.data = outbuf;
index 1506439..6f0d162 100755 (executable)
@@ -572,7 +572,13 @@ EXPORT_API sync_agent_da_return_e sync_agent_plugin_add_folder(int account_id, c
        calendar_record_h folder = 0;
 
        /* new service struct */
-       calendar_record_create(_calendar_book._uri, &folder);
+       int result_calendar_record_create = 0;
+       result_calendar_record_create = calendar_record_create(_calendar_book._uri, &folder);
+       if(result_calendar_record_create != CALENDAR_ERROR_NONE) {
+               _DEBUG_INFO("[task] calendar_svc_struct_new() Fail! result_calendar_record_create[%d]\n", result_calendar_record_create);
+               *folder_id = 0;
+               return SYNC_AGENT_DA_ERRORS;
+       }
        if (folder == NULL) {
                _DEBUG_INFO("[calendar] calendar_svc_struct_new() Fail!\n");
                *folder_id = 0;
index 3e41588..27a86dc 100755 (executable)
@@ -507,7 +507,13 @@ EXPORT_API sync_agent_da_return_e sync_agent_plugin_add_folder(int account_id, c
        calendar_record_h folder = 0;
 
        /* new service struct */
-       calendar_record_create(_calendar_book._uri, &folder);
+       int result_calendar_record_create = 0;
+       result_calendar_record_create = calendar_record_create(_calendar_book._uri, &folder);
+       if(result_calendar_record_create != CALENDAR_ERROR_NONE) {
+               _DEBUG_INFO("[task] calendar_svc_struct_new() Fail! result_calendar_record_create[%d]\n", result_calendar_record_create);
+               *folder_id = 0;
+               return SYNC_AGENT_DA_ERRORS;
+       }
        if (folder == NULL) {
                _DEBUG_INFO("[task] calendar_svc_struct_new() Fail!\n");
                *folder_id = 0;