Refactor: Cycles: Simplify util_guarded_mem_alloc/free calls

Pull Request: https://projects.blender.org/blender/blender/pulls/132912
This commit is contained in:
Brecht Van Lommel
2025-01-09 12:04:08 +01:00
parent 1fc73188e3
commit 0e8a7c751a
6 changed files with 25 additions and 27 deletions

View File

@@ -14,7 +14,7 @@ TEST(util_aligned_malloc, aligned_malloc_16)
{
int *mem = (int *)util_aligned_malloc(sizeof(int), 16);
CHECK_ALIGNMENT(mem, 16);
util_aligned_free(mem);
util_aligned_free(mem, sizeof(int));
}
/* On Apple we currently only support 16 bytes alignment. */
@@ -23,7 +23,7 @@ TEST(util_aligned_malloc, aligned_malloc_32)
{
int *mem = (int *)util_aligned_malloc(sizeof(int), 32);
CHECK_ALIGNMENT(mem, 32);
util_aligned_free(mem);
util_aligned_free(mem, sizeof(int));
}
#endif /* __APPLE__ */