mirror of
https://gitlab.uni-freiburg.de/opensourcevdi/spice-common
synced 2026-08-07 20:35:39 +00:00
coverity: avoid use after free
Signed-off-by: Fabiano Fidêncio <fidencio@redhat.com> Acked-by: Victor Toso <victortoso@redhat.com>
This commit is contained in:
parent
739a859d79
commit
bc73df4e47
@ -109,6 +109,7 @@ static inline pixman_image_t *__surface_create_stride(pixman_format_code_t forma
|
||||
|
||||
if (surface == NULL) {
|
||||
free(data);
|
||||
data = NULL;
|
||||
spice_error("create surface failed, out of memory");
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user