[Internal: Prevent fixed - 50967, 38040, 26642]
[platform/core/system/sync-agent.git] / src / framework / device-manager / mo_database_handler.c
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;