1
0
Fork 0
forked from len0rd/rockbox

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:
William Wilgus 2022-10-15 09:08:09 -04:00 committed by William Wilgus
parent 9d3d925295
commit 12ef045fdf
18 changed files with 32 additions and 62 deletions

View file

@ -221,8 +221,7 @@ int uimage_load(struct uimage_header* uh, size_t* out_size,
ret = 0;
err:
if(state_h > 0)
core_free(state_h);
core_free(state_h);
if(out_h > 0) {
if(ret == 0)
ret = out_h;