diff options
author | SooChan Lim <sc1.lim@samsung.com> | 2020-12-16 17:12:54 +0900 |
---|---|---|
committer | SooChan Lim <sc1.lim@samsung.com> | 2020-12-16 17:12:54 +0900 |
commit | 8d12a0744c97c81c24d7238a97daf5bfaf1cb861 (patch) | |
tree | 3908951032a9c520982d688f7bf904f599f10dff | |
parent | 5ef969f5fb3df410d665e3fe95838d321133b709 (diff) | |
download | libtdm-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.c | 1 |
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; } |