mirror of
https://gitlab.uni-freiburg.de/opensourcevdi/spice-common
synced 2026-08-18 18:25:14 +00:00
coverity: avoid resource leak
Signed-off-by: Fabiano Fidêncio <fidencio@redhat.com> Acked-by: Christophe Fergeau <cfergeau@redhat.com>
This commit is contained in:
parent
bc73df4e47
commit
89b902789b
@ -776,6 +776,7 @@ static inline SpicePalette *canvas_get_localized_palette(CanvasBase *canvas, Spi
|
||||
case SPICE_SURFACE_FMT_16_565:
|
||||
default:
|
||||
spice_warn_if_reached();
|
||||
free(copy);
|
||||
return NULL;
|
||||
}
|
||||
*free_palette = TRUE;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user