mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-11-09 13:12:37 -05:00
move buflib_free invalid handle check to the function
allow buflib_free to check for invalid or already freed handles within the function -- remove all the invalid handle guards thru core_free Change-Id: Ibdcbc82760fc93b674c42283fca420d94907df8e
This commit is contained in:
parent
9d3d925295
commit
12ef045fdf
18 changed files with 32 additions and 62 deletions
|
|
@ -178,8 +178,7 @@ static void updater_cleanup(struct updater* u)
|
|||
if(u->tar && mtar_is_open(u->tar))
|
||||
mtar_close(u->tar);
|
||||
|
||||
if(u->buf_hnd >= 0)
|
||||
core_free(u->buf_hnd);
|
||||
core_free(u->buf_hnd);
|
||||
|
||||
if(u->ndrv) {
|
||||
nand_close(u->ndrv);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue