prevent fixed
authorSang-Hun Chung <sanghun.chung@samsung.com>
Mon, 15 Apr 2013 11:59:28 +0000 (20:59 +0900)
committerSang-Hun Chung <sanghun.chung@samsung.com>
Mon, 15 Apr 2013 11:59:28 +0000 (20:59 +0900)
email-api/email-api-network.c
email-core/email-storage/email-storage.c

index 56eacea..d87a049 100755 (executable)
@@ -925,6 +925,8 @@ FINISH_OFF:
        if(hAPI)
                emipc_destroy_email_api(hAPI);
 
+       EM_SAFE_FREE(task_information_stream); /*prevent 51266*/
+
        EM_DEBUG_FUNC_END("err [%d]", err);
        return err;
 }
index 9618f03..8f95c2e 100755 (executable)
@@ -2616,9 +2616,8 @@ FINISH_OFF:
        if(result)
                sqlite3_free_table(result);
 
-       if (ret == true) {
-               if (result_mail_text_tbl)
-                       *result_mail_text_tbl = p_data_tbl;
+       if (ret == true && result_mail_text_tbl && result_count) { /*prevent 50930*/
+               *result_mail_text_tbl = p_data_tbl;
                *result_count = count;
        }
        else
@@ -14654,6 +14653,8 @@ static int _make_filter_fts_rule_string(email_list_filter_rule_fts_t *input_list
 
        *output_string = strdup(sql_query_string2);
 
+       EM_SAFE_FREE(mail_ids); /*prevent 50929*/
+
 FINISH_OFF:
        EM_SAFE_FREE(field_name_string);
        EM_DEBUG_FUNC_END("ret [%d]", ret);