summaryrefslogtreecommitdiffstats
path: root/domx/omx_proxy_component/omx_camera
diff options
context:
space:
mode:
authorSarthak Aggarwal <sarthak@ti.com>2011-09-12 03:45:21 +0530
committerIliyan Malchev <malchev@google.com>2011-09-12 11:44:59 -0700
commite005708a4599caa650c653028bea2ccb216fc653 (patch)
tree43012f07381e08d8ac60d8c88cb8f782d2f262a8 /domx/omx_proxy_component/omx_camera
parentba027fc89ec3950e1ac2f95fcc3f1002442ddabb (diff)
downloadhardware_ti_omap4xxx-e005708a4599caa650c653028bea2ccb216fc653.zip
hardware_ti_omap4xxx-e005708a4599caa650c653028bea2ccb216fc653.tar.gz
hardware_ti_omap4xxx-e005708a4599caa650c653028bea2ccb216fc653.tar.bz2
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 <sarthak@ti.com>
Diffstat (limited to 'domx/omx_proxy_component/omx_camera')
-rwxr-xr-xdomx/omx_proxy_component/omx_camera/src/omx_proxy_camera.c1
1 files changed, 1 insertions, 0 deletions
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;