mirror of
https://github.com/X11Libre/xserver.git
synced 2026-10-30 02:39:59 +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
1 changed files with 1 additions and 0 deletions
|
|
@ -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…
Reference in a new issue