[FFmpeg-devel] [PATCH] avdevice/xcbgrab: check return values of xcb query functions

Carl Eugen Hoyos ceffmpeg at gmail.com
Wed Jun 27 00:01:16 EEST 2018


2018-06-26 17:42 GMT+02:00, Moritz Barsnick <barsnick at gmx.net>:

> @@ -425,8 +435,9 @@ static int xcbgrab_read_packet
>          xcbgrab_draw_mouse(s, pkt, p, geo);
>  #endif
>
> -    free(p);
> -    free(geo);
> +fail:
> +    av_free(p);
> +    av_free(geo);

I suspect this is incorrect, if it is correct, it should be a separate patch.

Thank you, Carl Eugen


More information about the ffmpeg-devel mailing list