Change-Id: Ia8a11504445b09e91b65632778f2e7eaf7c0a9a6
Signed-off-by: Inkyun Kil <inkyun.kil@samsung.com>
LOGI("BULK ADD RESPONSE");
if (provider_result) {
if (_recv_bulk_process(fd, &bulk_results)
- != DATACONTROL_ERROR_NONE)
- return DATACONTROL_ERROR_IO_ERROR;
+ != DATACONTROL_ERROR_NONE) {
+ if (bulk_results)
+ datacontrol_bulk_result_data_destroy(bulk_results);
+
+ return DATACONTROL_ERROR_IO_ERROR;
+ }
}
break;
case DATACONTROL_TYPE_MAP_GET:
LOGI("BULK INSERT RESPONSE");
if (provider_result) {
if (__recv_sql_bulk_insert_process(fd, &bulk_results)
- != DATACONTROL_ERROR_NONE)
+ != DATACONTROL_ERROR_NONE) {
+ if (bulk_results)
+ datacontrol_bulk_result_data_destroy(bulk_results);
+
return DATACONTROL_ERROR_IO_ERROR;
+ }
}
break;
case DATACONTROL_TYPE_SQL_SELECT: