accelerants/radeon: Fix potential memory leak
* Fix potential leak of 'node' at line 147, which is allocated at line 123. Pointed out by Clang Static Analyzer. * Remove trailing tabs. Change-Id: I2289dfb5a9d0ada1fd7fc3854906d66a730b5bcb Reviewed-on: https://review.haiku-os.org/c/1058 Reviewed-by: Adrien Destugues <[email protected]>
This commit is contained in:
committed by
waddlesplash
parent
4512141632
commit
b7223dc11f
@@ -167,6 +167,7 @@ const overlay_buffer *ALLOCATE_OVERLAY_BUFFER( color_space cs, uint16 width, uin
|
|||||||
return buffer;
|
return buffer;
|
||||||
|
|
||||||
err:
|
err:
|
||||||
|
free(node);
|
||||||
RELEASE_BEN( si->engine.lock );
|
RELEASE_BEN( si->engine.lock );
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user