Fix the svace issue (MEMORY_LEAK.EX) 32/258032/1 accepted/tizen_6.5_unified accepted/tizen_7.0_unified accepted/tizen_7.0_unified_hotfix tizen_6.5 tizen_7.0 tizen_7.0_hotfix accepted/tizen/6.5/unified/20211028.093057 accepted/tizen/7.0/unified/20221110.061934 accepted/tizen/7.0/unified/hotfix/20221116.104305 accepted/tizen/unified/20210607.124343 submit/tizen/20210606.233230 submit/tizen_6.5/20211028.161201 tizen_6.5.m2_release tizen_7.0_m2_release
authorDoHyun Pyun <dh79.pyun@samsung.com>
Sun, 9 May 2021 22:27:58 +0000 (07:27 +0900)
committerDoHyun Pyun <dh79.pyun@samsung.com>
Sun, 9 May 2021 22:27:58 +0000 (07:27 +0900)
Change-Id: Ic0b7efb487d57658a3f73c9fa0f73573dfa307f0
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
standard/bt-main-view.c

index 47e77e6..6827281 100644 (file)
@@ -1451,6 +1451,8 @@ static int __bt_main_request_to_send(bt_ug_data *ugd, bt_dev_t *dev)
                        if (array_val[i])
                                free(array_val[i]);
                }
+               free(array_val);
+               array_val = NULL;
        }
        _bt_main_launch_syspopup(ugd, BT_SYSPOPUP_REQUEST_NAME,
                                 BT_STR_UNABLE_TO_SEND,