atrace: Fix a svace issue 94/313994/1 accepted/tizen_unified_dev accepted/tizen/unified/20240704.173826 accepted/tizen/unified/dev/20240708.001750 accepted/tizen/unified/toolchain/20240812.131449 accepted/tizen/unified/x/20240705.012351 accepted/tizen/unified/x/asan/20240813.225725
authorSung-hun Kim <sfoon.kim@samsung.com>
Thu, 4 Jul 2024 01:04:59 +0000 (10:04 +0900)
committerSung-hun Kim <sfoon.kim@samsung.com>
Thu, 4 Jul 2024 01:04:59 +0000 (10:04 +0900)
commit4b52310031e7a1849a74f298479782ed08840cc6
treed583f8f72cf5f02f26e1c997100bb417088f1919
parent28d2ec4f084e41bc3983b3ae59317dc20cc1719b
atrace: Fix a svace issue

The new operator in C++ does not return nullptr when it is failed.
Instead, it throws a bad_alloc exception to notify the failure.
With an optional `std::nothrow` keyword, the new operator returns
nullptr instead of exception throwing when it is failed.

This patch fixes a svace issue 209972.

Change-Id: I6a6f900f06bf7911fc9aa53366d5da6375680915
Signed-off-by: Sung-hun Kim <sfoon.kim@samsung.com>
atrace/atrace.cpp