@@ -2775,15 +2775,15 @@ CL_API_ENTRY void *CL_API_CALL clEnqueueMapImageIntelFPGA(
2775
2775
*image_slice_pitch = 0 ;
2776
2776
} else {
2777
2777
BAIL_INFO (CL_INVALID_VALUE, command_queue->context ,
2778
- " Invalid slice pitch provided" );
2778
+ " Invalid slice pitch provided" );
2779
2779
}
2780
2780
} else if (image->mem_object_type == CL_MEM_OBJECT_IMAGE1D_ARRAY) {
2781
2781
*image_slice_pitch = tmp_row_pitch;
2782
2782
} else {
2783
2783
*image_slice_pitch =
2784
2784
image->fields .image_objs .image_desc ->image_height * tmp_row_pitch;
2785
2785
}
2786
-
2786
+
2787
2787
tmp_slice_pitch = *image_slice_pitch;
2788
2788
}
2789
2789
@@ -4169,6 +4169,7 @@ ACL_EXPORT CL_API_ENTRY cl_int CL_API_CALL clEnqueueMigrateMemObjectsIntelFPGA(
4169
4169
num_mem_objects * sizeof (acl_mem_migrate_wrapper_t ));
4170
4170
4171
4171
if (!new_src_mem_list) {
4172
+ free (needs_release_on_fail);
4172
4173
return CL_OUT_OF_RESOURCES;
4173
4174
}
4174
4175
@@ -4179,6 +4180,7 @@ ACL_EXPORT CL_API_ENTRY cl_int CL_API_CALL clEnqueueMigrateMemObjectsIntelFPGA(
4179
4180
num_mem_objects * sizeof (acl_mem_migrate_wrapper_t ));
4180
4181
4181
4182
if (!local_event->cmd .info .memory_migration .src_mem_list ) {
4183
+ free (needs_release_on_fail);
4182
4184
return CL_OUT_OF_RESOURCES;
4183
4185
}
4184
4186
}
@@ -6825,9 +6827,9 @@ static void acl_dump_mem_internal(cl_mem mem) {
6825
6827
? " is malloc"
6826
6828
: " not malloc" ));
6827
6829
printf (" .begin %p\n " ,
6828
- mem->block_allocation ->range .begin );
6830
+ mem->block_allocation ->range .begin );
6829
6831
printf (" .end %p\n " ,
6830
- mem->block_allocation ->range .next );
6832
+ mem->block_allocation ->range .next );
6831
6833
}
6832
6834
printf (" .mappings %d\n " , mem->mapping_count );
6833
6835
acl_print_debug_msg (" .size %lu\n " , mem->size );
0 commit comments