diff options
author | Junkyeong Kim <jk0430.kim@samsung.com> | 2021-03-23 20:13:52 +0900 |
---|---|---|
committer | Junkyeong Kim <jk0430.kim@samsung.com> | 2021-03-23 20:13:57 +0900 |
commit | dfe6dbfcd35c30c5d1a61e5c754b69e9b6d81461 (patch) | |
tree | f139e0a8f2261e930e2a52de7df1ce8773ec76c6 | |
parent | ac376071906acf6cf192e5f40732f61a21546ccf (diff) | |
download | libtdm-drm-dfe6dbfcd35c30c5d1a61e5c754b69e9b6d81461.tar.gz libtdm-drm-dfe6dbfcd35c30c5d1a61e5c754b69e9b6d81461.tar.bz2 libtdm-drm-dfe6dbfcd35c30c5d1a61e5c754b69e9b6d81461.zip |
Erase unnecessary deinit function
_tdm_drm_display_deinitialize is called in initialize if init failed.
Fix double free error.
Change-Id: I05b8e849197d6a36236bccb4da9f9ad6b6084868
Signed-off-by: Junkyeong Kim <jk0430.kim@samsung.com>
-rw-r--r-- | src/libhal-backend-tdm-drm/tdm_backend_drm.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/src/libhal-backend-tdm-drm/tdm_backend_drm.c b/src/libhal-backend-tdm-drm/tdm_backend_drm.c index 8ea0de8..d6e420e 100644 --- a/src/libhal-backend-tdm-drm/tdm_backend_drm.c +++ b/src/libhal-backend-tdm-drm/tdm_backend_drm.c @@ -295,7 +295,6 @@ _tdm_drm_master_drm_fd_handler(hal_tdm_fd master_drm_fd, void *user_data) ret = _tdm_drm_display_initialize(display_data); if (ret != HAL_TDM_ERROR_NONE) { TDM_BACKEND_ERR("fail to _tdm_drm_display_initialize!\n"); - _tdm_drm_display_deinitialize(display_data); return HAL_TDM_ERROR_OPERATION_FAILED; } |