projects
/
platform
/
core
/
connectivity
/
smartcard-plugin-nfc.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Fix Svace issue
[platform/core/connectivity/smartcard-plugin-nfc.git]
/
NFCTerminal.cpp
diff --git
a/NFCTerminal.cpp
b/NFCTerminal.cpp
index
174c915
..
e142769
100644
(file)
--- a/
NFCTerminal.cpp
+++ b/
NFCTerminal.cpp
@@
-341,12
+341,14
@@
namespace smartcard_service_api
if (rv == NFC_ERROR_NONE && temp != NULL)
{
atr.assign(temp, temp_len);
- g_free(temp);
}
else
{
_ERR("nfc_se_get_atr_internal failed");
}
+
+ if (temp != NULL)
+ g_free(temp);
}
else
{