fix prevent issue 69/45669/1
authorGukhwan Cho <gh78.cho@samsung.com>
Mon, 22 Jun 2015 11:16:12 +0000 (20:16 +0900)
committerMyoungHoon Chae <mhoon.chae@samsung.com>
Mon, 10 Aug 2015 08:28:54 +0000 (17:28 +0900)
Change-Id: If708fae42cacbead47a3378a4394cd94ea167b03
Signed-off-by: Gukhwan Cho <gh78.cho@samsung.com>
native/ctsvc_db_query.c

index 1b88efa..e2b2d6c 100644 (file)
@@ -949,6 +949,7 @@ int ctsvc_db_make_get_records_query_stmt(ctsvc_query_s *s_query, int offset, int
        query = calloc(1, query_size);
        if (NULL == query) {
                CTS_ERR("calloc() Fail");
+               free(projection);
                return CONTACTS_ERROR_OUT_OF_MEMORY;
        }