xf86drm: Fix possible memory leak with drmModeGetPropertyPtr()
authorSeung-Woo Kim <sw0312.kim@samsung.com>
Mon, 29 Apr 2019 09:10:52 +0000 (18:10 +0900)
committerEric Engestrom <eric.engestrom@intel.com>
Fri, 3 May 2019 11:47:42 +0000 (12:47 +0100)
commitb39377d66ac04363f3c47ba5870c5ef71a95f5b8
tree599af844bad6eb26c96f78fa4eae6cbde91459a7
parent6a7d1329dbcc898f51173885db08d36c80bb5f20
xf86drm: Fix possible memory leak with drmModeGetPropertyPtr()

In drmModeGetPropertyPtr(), from upper error path, it calls free
but with just next error path, it does not call. Fix the possible
memory leak.

Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
Reviewed-by: Eric Engestrom <eric.engestrom@intel.com>
xf86drmMode.c