mirror of
https://github.com/X11Libre/xserver.git
synced 2026-01-26 05:57:53 +00:00
glamor: fix memory leak in error path
Found in 84cf20e6dd by Alanc
Signed-off-by: stefan11111 <stefan11111@shitposting.expert>
This commit is contained in:
parent
bf24ecb95b
commit
b0050ee830
@ -228,6 +228,7 @@ glamor_compute_clipped_regions_ext(PixmapPtr pixmap,
|
||||
inner_block_h), sizeof(*result_regions));
|
||||
if (!result_regions) {
|
||||
*n_region = 0;
|
||||
free(clipped_regions);
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user