diff options
author | Jihoon Jung <jh8801.jung@samsung.com> | 2020-12-15 10:24:57 +0900 |
---|---|---|
committer | Jihoon Jung <jh8801.jung@samsung.com> | 2020-12-15 10:28:35 +0900 |
commit | 005600677148a00d612bb8ae97c8833040be9445 (patch) | |
tree | c3104ee1dda66b3806d330895dd6abfd3df223dd | |
parent | 1e74825669656e7dab97a57a0bbc96f498a6ce77 (diff) | |
download | smartcard-plugin-nfc-accepted/tizen_unified_riscv.tar.gz smartcard-plugin-nfc-accepted/tizen_unified_riscv.tar.bz2 smartcard-plugin-nfc-accepted/tizen_unified_riscv.zip |
Fix Svace issueHEADtizen_9.0_m2_releasetizen_8.0_m2_releasetizen_7.0_m2_releasetizen_6.5.m2_releasesubmit/tizen_6.5/20211028.162201submit/tizen/20201215.014111accepted/tizen/unified/riscv/20230724.093725accepted/tizen/unified/20201215.123253accepted/tizen/9.0/unified/20241030.234325accepted/tizen/8.0/unified/20231005.093236accepted/tizen/7.0/unified/hotfix/20221116.105215accepted/tizen/7.0/unified/20221110.062156accepted/tizen/6.5/unified/20211028.100728tizen_9.0tizen_8.0tizen_7.0_hotfixtizen_7.0tizen_6.5tizenaccepted/tizen_unified_riscvaccepted/tizen_unifiedaccepted/tizen_9.0_unifiedaccepted/tizen_8.0_unifiedaccepted/tizen_7.0_unified_hotfixaccepted/tizen_7.0_unifiedaccepted/tizen_6.5_unified
- WGID 449118 : MEMORY_LEAK.EX
Change-Id: I72ccc3bddbd52309fbc1a58a90657b81addc49d4
Signed-off-by: Jihoon Jung <jh8801.jung@samsung.com>
-rw-r--r-- | NFCTerminal.cpp | 4 |
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 { |