Remove double pointer memory allocation 54/8454/1
authorDongchul Lim <dc7.lim@samsung.com>
Wed, 5 Jun 2013 04:20:01 +0000 (13:20 +0900)
committerwootak.jung <wootak.jung@samsung.com>
Tue, 20 Aug 2013 00:42:15 +0000 (09:42 +0900)
src/tapi_common.c

index 04ec9cc..27d160f 100644 (file)
@@ -1245,6 +1245,8 @@ EXPORT_API TapiHandle* tel_init(const char *cp_name)
                /* Free CP name list */
                while (list[i] != NULL)
                        g_free(list[i++]);
+
+               g_free(list);
        }
 
        /* Create Event list Hash Table */