mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-05-09 02:38:07 +02:00
ps: Free page on error path.
This commit is contained in:
parent
c8a8e57d6a
commit
213093f437
1 changed files with 1 additions and 0 deletions
|
|
@ -886,6 +886,7 @@ _cairo_ps_surface_get_page_media (cairo_ps_surface_t *surface)
|
|||
}
|
||||
|
||||
if (unlikely (page->name == NULL)) {
|
||||
free (page);
|
||||
_cairo_error_throw (CAIRO_STATUS_NO_MEMORY);
|
||||
return NULL;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue