aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEric Wild <ewild@sysmocom.de>2021-06-21 23:46:38 +0200
committerEric Wild <ewild@sysmocom.de>2021-06-21 23:46:38 +0200
commit017e10e9efec2d4065e9c6631d24be93ad5f02fd (patch)
tree6b99c72edf33fbc923cc73462397375f98358a7a
parentf0653533cc366ae41ed0e87ec060a97597e9cf0c (diff)
cardem: free the buf
This leak was probably hard to notice since config commands are usually rarely sent. Change-Id: I21411ef78a32a5258a7008272774cdb83119b413
-rw-r--r--firmware/libcommon/source/mode_cardemu.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/firmware/libcommon/source/mode_cardemu.c b/firmware/libcommon/source/mode_cardemu.c
index a357f15..b9971ed 100644
--- a/firmware/libcommon/source/mode_cardemu.c
+++ b/firmware/libcommon/source/mode_cardemu.c
@@ -705,6 +705,7 @@ static void dispatch_usb_command_cardem(struct msgb *msg, struct cardem_inst *ci
case SIMTRACE_MSGT_BD_CEMU_CONFIG:
cfg = (struct cardemu_usb_msg_config *) msg->l2h;
card_emu_set_config(ci->ch, cfg, msgb_l2len(msg));
+ usb_buf_free(msg);
break;
case SIMTRACE_MSGT_BD_CEMU_STATS:
default: