Skip to content
Snippets Groups Projects
Commit 03b3afb8 authored by Jussi Kivilinna's avatar Jussi Kivilinna Committed by Pekka Niemimaa
Browse files

cdcacm: fix memory leak in unbind


Freeing write requests seemingly worked, but since IN endpoint was freed
before write requests, 'priv->epbulkin' was NULL and cdcacm_freereq for
write requests as result was NOP.

Change order of freeing and add debug assert to cdcacm_freereq to make
such memory leaks more noticeable.

Signed-off-by: default avatarJussi Kivilinna <jussi.kivilinna@haltian.com>
(cherry picked from commit 215b7fb129621d6fd7b7de40a34d737e69cecf8a)
parent ab8c2bd7
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment