From e005708a4599caa650c653028bea2ccb216fc653 Mon Sep 17 00:00:00 2001 From: Sarthak Aggarwal Date: Mon, 12 Sep 2011 03:45:21 +0530 Subject: DOMX: Do proper clean up even in case of error in GetHandle In case of some error during GetHandle, there was a double free of a pointer which was finally leading to a seg fault. This patch rectifies that clean up path. Change-Id: Ia24fc746d9a274ac0b7bea4b2dfbcde657b15c13 Signed-off-by: Sarthak Aggarwal --- domx/omx_proxy_component/omx_camera/src/omx_proxy_camera.c | 1 + 1 file changed, 1 insertion(+) (limited to 'domx/omx_proxy_component/omx_camera') diff --git a/domx/omx_proxy_component/omx_camera/src/omx_proxy_camera.c b/domx/omx_proxy_component/omx_camera/src/omx_proxy_camera.c index 9f5ce7b..16589c0 100755 --- a/domx/omx_proxy_component/omx_camera/src/omx_proxy_camera.c +++ b/domx/omx_proxy_component/omx_camera/src/omx_proxy_camera.c @@ -333,6 +333,7 @@ OMX_ERRORTYPE OMX_ComponentInit(OMX_HANDLETYPE hComponent) DOMX_ERROR("\Error in Initializing Proxy"); TIMM_OSAL_Free(pComponentPrivate->cCompName); TIMM_OSAL_Free(pComponentPrivate); + goto EXIT; } pHandle->ComponentDeInit = ComponentPrivateDeInit; -- cgit v1.1