mirror of
https://gitea.osmocom.org/sim-card/simtrace2.git
synced 2026-03-16 21:28:33 +03:00
cardem: free the buf
This leak was probably hard to notice since config commands are usually rarely sent. Change-Id: I21411ef78a32a5258a7008272774cdb83119b413
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user