From bf99a181a8dd9fe581bbd499515315353c8af766 Mon Sep 17 00:00:00 2001 From: iceman1001 Date: Fri, 15 Mar 2019 00:32:50 +0100 Subject: [PATCH] free? --- client/emv/cmdemv.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/client/emv/cmdemv.c b/client/emv/cmdemv.c index 31886cf75..b5edfa81c 100644 --- a/client/emv/cmdemv.c +++ b/client/emv/cmdemv.c @@ -288,6 +288,7 @@ int CmdEMVGPO(const char *cmd) { PrintAndLogEx(ERR, "Can't create PDOL data."); tlvdb_free(tmp_ext); tlvdb_free(tlvRoot); + free(pdol_data_tlv); return 4; } PrintAndLogEx(INFO, "PDOL data[%d]: %s", pdol_data_tlv_data_len, sprint_hex(pdol_data_tlv_data, pdol_data_tlv_data_len)); @@ -1577,6 +1578,7 @@ int CmdEMVScan(const char *cmd) { if (!pdol_data_tlv_data) { PrintAndLogEx(ERR, "Can't create PDOL data."); tlvdb_free(tlvRoot); + free(pdol_data_tlv); DropFieldEx(channel); return 6; }