summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSooChan Lim <sc1.lim@samsung.com>2020-12-16 17:12:54 +0900
committerSooChan Lim <sc1.lim@samsung.com>2020-12-16 17:12:54 +0900
commit8d12a0744c97c81c24d7238a97daf5bfaf1cb861 (patch)
tree3908951032a9c520982d688f7bf904f599f10dff
parent5ef969f5fb3df410d665e3fe95838d321133b709 (diff)
downloadlibtdm-vc4-8d12a0744c97c81c24d7238a97daf5bfaf1cb861.tar.gz
libtdm-vc4-8d12a0744c97c81c24d7238a97daf5bfaf1cb861.tar.bz2
libtdm-vc4-8d12a0744c97c81c24d7238a97daf5bfaf1cb861.zip
fix the memory leak
Change-Id: I0d2280dcfd291fd5a52565b84a96416b96e113aa
-rw-r--r--src/tdm_vc4.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/tdm_vc4.c b/src/tdm_vc4.c
index fa3db98..62b4421 100644
--- a/src/tdm_vc4.c
+++ b/src/tdm_vc4.c
@@ -84,6 +84,7 @@ _tdm_vc4_udev_fd_handler(int fd, tdm_event_loop_mask mask, void *user_data)
ret = fstat(edata->drm_fd, &s);
if (ret == -1) {
TDM_ERR("fstat failed");
+ udev_device_unref(dev);
return TDM_ERROR_OPERATION_FAILED;
}