summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJihoon Jung <jh8801.jung@samsung.com>2020-12-15 10:24:57 +0900
committerJihoon Jung <jh8801.jung@samsung.com>2020-12-15 10:28:35 +0900
commit005600677148a00d612bb8ae97c8833040be9445 (patch)
treec3104ee1dda66b3806d330895dd6abfd3df223dd
parent1e74825669656e7dab97a57a0bbc96f498a6ce77 (diff)
downloadsmartcard-plugin-nfc-accepted/tizen_unified.tar.gz
smartcard-plugin-nfc-accepted/tizen_unified.tar.bz2
smartcard-plugin-nfc-accepted/tizen_unified.zip
- WGID 449118 : MEMORY_LEAK.EX Change-Id: I72ccc3bddbd52309fbc1a58a90657b81addc49d4 Signed-off-by: Jihoon Jung <jh8801.jung@samsung.com>
-rw-r--r--NFCTerminal.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/NFCTerminal.cpp b/NFCTerminal.cpp
index 174c915..e142769 100644
--- 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
{