h2generic.cpp: fix use after free.
Signed-off-by: Augustin Cavalier <waddlesplash@gmail.com>
This commit is contained in:
parent
e6004b7729
commit
7cfdd9242c
@ -149,6 +149,7 @@ bail1:
|
||||
delete_sem(new_bt_dev->cmd_complete);
|
||||
bail0:
|
||||
free(new_bt_dev);
|
||||
new_bt_dev = NULL;
|
||||
exit:
|
||||
return new_bt_dev;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user