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:
bfc125d
)
Fix memory leak in unittest
14/262914/1
accepted/tizen/unified/20210824.123753
submit/tizen/20210823.113859
author
Jihoon Kim
<jihoon48.kim@samsung.com>
Mon, 23 Aug 2021 11:25:12 +0000
(20:25 +0900)
committer
Jihoon Kim
<jihoon48.kim@samsung.com>
Mon, 23 Aug 2021 11:25:15 +0000
(20:25 +0900)
Dynamic memory referenced by 'data' was allocated at tts_unittests.cpp:3146
by calling function 'calloc' and lost at tts_unittests.cpp:3148
Change-Id: Icf8b7e7571f30bb0e5593bdeff2e27a061b3bf57
Signed-off-by: Jihoon Kim <jihoon48.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 7a9471b387a7ecd2d216a7f62bdc58e29a9bf84c..e11d29e7b6e0d5b25d119946cb75f3a8720ee69b 100644
(file)
--- a/
tests/src/tts_unittests.cpp
+++ b/
tests/src/tts_unittests.cpp
@@
-3158,6
+3158,8
@@
TEST_F(TTSTest, utc_tts_play_pcm_p2)
}
}
+ free(data);
+
EXPECT_EQ(tts_play_pcm(g_tts), TTS_ERROR_NONE);
EXPECT_EQ(true, __is_state_changed(TTS_STATE_PLAYING, 5));