Fix the svace issue - Memory Leak 97/98897/1 accepted/tizen/common/20161122.193036 accepted/tizen/ivi/20161123.000101 accepted/tizen/mobile/20161123.000013 accepted/tizen/tv/20161123.000028 accepted/tizen/wearable/20161123.000044 submit/tizen/20161122.051739
authorDoHyun Pyun <dh79.pyun@samsung.com>
Mon, 21 Nov 2016 06:24:20 +0000 (15:24 +0900)
committerDoHyun Pyun <dh79.pyun@samsung.com>
Mon, 21 Nov 2016 06:24:20 +0000 (15:24 +0900)
Change-Id: I01071d3ae50f6054856c226936483e466f078661
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
bt-share/src/obex-event-handler.c

index 14a3e60..356d52d 100644 (file)
@@ -1165,17 +1165,17 @@ done:
                if (g_strcmp0(transfer_info->type, TRANSFER_PUT) == 0) {
                        INFO("TRANSFER_PUT");
 
-                       file_path = __get_dest_file_path(transfer_info->file_path);
-                       DBG_SECURE("Filename[%s] FilePath[%s] Address[%s]",
-                                       transfer_info->filename, file_path,
-                                       transfer_info->address);
-
                        bt_device_rcv_noti_info_t *rcv_noti_info =
                                __bt_get_rcv_noti_data_by_device_address(transfer_info->address);
 
                        if (rcv_noti_info == NULL)
                                break;
 
+                       file_path = __get_dest_file_path(transfer_info->file_path);
+                       DBG_SECURE("Filename[%s] FilePath[%s] Address[%s]",
+                                       transfer_info->filename, file_path,
+                                       transfer_info->address);
+
                        if (aul_get_mime_from_file(file_path, mime_type,
                                        BT_MIME_TYPE_MAX_LEN) == AUL_R_OK)
                                DBG_SECURE("mime type : %s", mime_type);