egl/wayland: plug memory leak in drm_handle_device()
authorEmil Velikov <emil.velikov@collabora.com>
Tue, 27 Nov 2018 11:36:01 +0000 (11:36 +0000)
committerEmil Velikov <emil.l.velikov@gmail.com>
Wed, 28 Nov 2018 16:12:12 +0000 (16:12 +0000)
commitce74a7bb8de7f5b921d53384582de3324290cd60
tree3a3d76ba22e45269ea18ad607c64d6b4d4065eb3
parentc59d3aa4b9bc58994e199052171a8119aaa8195c
egl/wayland: plug memory leak in drm_handle_device()

As we fail to open the node, we leak the node/device name.

v2: Log and then free() (Eric)

Cc: mesa-stable@lists.freedesktop.org
Signed-off-by: Emil Velikov <emil.velikov@collabora.com>
Reviewed-by: Eric Engestrom <eric.engestrom@intel.com>
src/egl/drivers/dri2/platform_wayland.c