projects
/
platform
/
core
/
uifw
/
nlp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cdc810d
)
Fix issue detected by static analysis tool
84/291784/1
author
Jihoon Kim
<jihoon48.kim@samsung.com>
Fri, 21 Apr 2023 05:41:12 +0000
(14:41 +0900)
committer
Jihoon Kim
<jihoon48.kim@samsung.com>
Fri, 21 Apr 2023 05:41:12 +0000
(14:41 +0900)
Change-Id: I275ad729a3a956266a7f2eb40bc50d7936bac6aa
Signed-off-by: Jihoon Kim <jihoon48.kim@samsung.com>
tests/src/nlp_service_unittests.cpp
patch
|
blob
|
history
diff --git
a/tests/src/nlp_service_unittests.cpp
b/tests/src/nlp_service_unittests.cpp
index 8eac10478aee528f60790280d8ef569406750b4b..8bd3d1e74eb9d6e473719b24cff6fb0fb0c5946e 100644
(file)
--- a/
tests/src/nlp_service_unittests.cpp
+++ b/
tests/src/nlp_service_unittests.cpp
@@
-120,14
+120,12
@@
TEST_F(NlpServiceTest, utc_nlp_service_pos_tag_p)
tags.push_back(string(tmp_str));
free(tmp_str);
- tmp_str = NULL;
}
tmp_str = nltk_get_string_from_element(nltk_get_element_from_tuple_by_index(pt_elm_tuple, 0));
tokens.push_back(tmp_str ? string(tmp_str) : string(""));
free(tmp_str);
- tmp_str = NULL;
Py_DECREF(pt_elm_tuple);
}