projects
/
platform
/
core
/
uifw
/
tts.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cb4fdc6
)
Fix svace issue (resolve memory leak)
33/299533/2
author
sooyeon
<sooyeon.kim@samsung.com>
Wed, 4 Oct 2023 07:05:18 +0000
(16:05 +0900)
committer
sooyeon
<sooyeon.kim@samsung.com>
Tue, 10 Oct 2023 11:16:31 +0000
(20:16 +0900)
Change-Id: I803bbf8bd03bb056d3e4366bd87c2aecb9c4e739
Signed-off-by: sooyeon <sooyeon.kim@samsung.com>
tests/src/tts_unittests.cpp
patch
|
blob
|
history
diff --git
a/tests/src/tts_unittests.cpp
b/tests/src/tts_unittests.cpp
index 6cca77c8a8b780a0242a8362df4c4c1d44ab79c6..c7b1b0b2658fd08f4d57cdcab15ac0f36dbc709b 100644
(file)
--- a/
tests/src/tts_unittests.cpp
+++ b/
tests/src/tts_unittests.cpp
@@
-2175,6
+2175,11
@@
TEST_F(TTSTest, utc_tts_get_error_message_n1)
EXPECT_EQ(tts_get_error_message(mHandle, nullptr), TTS_ERROR_INVALID_PARAMETER);
EXPECT_EQ(tts_get_error_message(nullptr, &error_message), TTS_ERROR_INVALID_PARAMETER);
+
+ if (error_message) {
+ free(error_message);
+ error_message = nullptr;
+ }
}
/**