From 90efd0c08ec78513fde5350d2eb56ba7b2d3478e Mon Sep 17 00:00:00 2001 From: "Mun, Gwan-gyeong" Date: Tue, 8 Mar 2016 14:05:57 +0900 Subject: [PATCH] Remove potential defect: It doest not need to call __tpl_hashlist_delete() when the __tpl_hashlist_insert() fails on __tpl_rintime_add_display(). Change-Id: Icfa9e0d05a0a906bc2cee33573b6aa06b8b536be --- src/tpl.c | 1 - 1 file changed, 1 deletion(-) diff --git a/src/tpl.c b/src/tpl.c index 228e2c0..399e561 100644 --- a/src/tpl.c +++ b/src/tpl.c @@ -172,7 +172,6 @@ __tpl_runtime_add_display(tpl_display_t *display) if (TPL_ERROR_NONE != ret) { TPL_ERR("__tpl_hashlist_insert failed. list(%p), handle(%d), display(%p)", runtime->displays[type], handle, display); - __tpl_hashlist_destroy(&runtime->displays[type]); pthread_mutex_unlock(&runtime_mutex); return TPL_ERROR_INVALID_OPERATION; } -- 2.7.4