[Spice-devel] [spice-common 2/8] coverity: avoid resource leak
Fabiano FidĂȘncio
fidencio at redhat.com
Mon Apr 4 08:03:33 UTC 2016
---
common/canvas_base.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/common/canvas_base.c b/common/canvas_base.c
index fa4d373..650422b 100644
--- a/common/canvas_base.c
+++ b/common/canvas_base.c
@@ -769,6 +769,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;
--
2.7.3
More information about the Spice-devel
mailing list