Fixed tapi crash issue 58/21558/2 tizen
authorjiajia qin <jiajia.qin@intel.com>
Thu, 22 May 2014 16:46:25 +0000 (00:46 +0800)
committerjiajia qin <jiajia.qin@intel.com>
Fri, 23 May 2014 11:01:44 +0000 (19:01 +0800)
The reason of the crash is the code is trying to free the variable on the stack.

Signed-off-by: Qin Jiajia <jiajia.qin@intel.com>
Change-Id: I1dc3b38a335131e22b7b5e6f9069d1843214e575

src/tapi_modem.c

index a4a968f..832fb69 100644 (file)
@@ -267,7 +267,6 @@ EXPORT_API char *tel_get_misc_me_imei_sync(TapiHandle *handle)
        ret = tapi_modem_get_imei((TelHandle *)handle, imei);
        if (ret != TEL_RETURN_SUCCESS) {
                err("Operation Failed");
-               g_free(imei);
                return NULL;
        }