[Spice-devel] [spice-common 1/8] coverity: avoid use after free
Victor Toso
lists at victortoso.com
Mon Apr 4 08:55:14 UTC 2016
Hi,
On Mon, Apr 04, 2016 at 10:03:32AM +0200, Fabiano FidĂȘncio wrote:
> ---
> common/canvas_utils.c | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/common/canvas_utils.c b/common/canvas_utils.c
> index c5813f4..0be761a 100644
> --- a/common/canvas_utils.c
> +++ b/common/canvas_utils.c
> @@ -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");
Acked-by: Victor Toso <victortoso at redhat.com>
> }
>
> --
> 2.7.3
>
> _______________________________________________
> Spice-devel mailing list
> Spice-devel at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/spice-devel
More information about the Spice-devel
mailing list