[Mesa-dev] [PATCH] egl_dri2: check if device_name is NULL before releasing it

Emil Velikov emil.l.velikov at gmail.com
Tue Oct 30 10:49:18 UTC 2018


On Tue, 30 Oct 2018 at 07:13, Zhaowei Yuan <zhaowei.yuan at samsung.com> wrote:
>
> Pointer dri2_dpy->device_name is probably NULL when calling
> dri2_display_destory, check this before releasing it.
>
According to the man page, free(NULL) is perfectly valid and safe.

-Emil


More information about the mesa-dev mailing list