projects
/
platform
/
hal
/
api
/
tdm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0a37923
)
Fix the memory leak when hal_common_get_backend is failed
author
Changyeon Lee
<cyeon.lee@samsung.com>
Wed, 24 Jul 2024 07:16:29 +0000
(16:16 +0900)
committer
Changyeon Lee
<cyeon.lee@samsung.com>
Wed, 24 Jul 2024 07:47:21 +0000
(16:47 +0900)
Change-Id: I3877e91f3421f0eff3da3c5ed141534ecb6657f7
src/hal-api-tdm.c
patch
|
blob
|
history
diff --git
a/src/hal-api-tdm.c
b/src/hal-api-tdm.c
index 6914f4b04e2fb35024a4ea3c658ca6c47cfeba4f..fea516baf54632105167552f3ba8b070e9548e50 100644
(file)
--- a/
src/hal-api-tdm.c
+++ b/
src/hal-api-tdm.c
@@
-277,7
+277,7
@@
hal_tdm_get_backend(hal_tdm_error *error)
HAL_TDM_ERR("Failed to get backend\n");
if (error)
*error = HAL_TDM_ERROR_NO_MODULE;
-
return NULL
;
+
goto fail
;
}
g_hal_tdm_backend_data = (hal_tdm_backend_data *)backend_data;