midi: Free ALSA seq resources in midi_device_remove()
authorJacek Konieczny <jajcus@jajcus.net>
Mon, 1 Nov 2021 13:49:18 +0000 (14:49 +0100)
committerAyush Garg <ayush.garg@samsung.com>
Fri, 11 Mar 2022 13:38:37 +0000 (19:08 +0530)
commitb196ca51f0ebb98e1c5a19e25622a0f42b08ca6c
tree9a6eec39afda000434203ef14d4a6743bd608cde
parent4e88b310eb6e4b90a0d559a4a29a3b66961d475b
midi: Free ALSA seq resources in midi_device_remove()

Sometimes, on connection error, this gets called and frees the device
when midi_disconnect() was not called which would leave ALSA sequencer
objects leaking.

Signed-off-by: Anuj Jain <anuj01.jain@samsung.com>
Signed-off-by: Ayush Garg <ayush.garg@samsung.com>
profiles/midi/midi.c