Skip to content

Make realloc usage consistent#1811

Merged
charles-lunarg merged 1 commit into
KhronosGroup:mainfrom
charles-lunarg:cleanup_realloc_usage
Nov 19, 2025
Merged

Make realloc usage consistent#1811
charles-lunarg merged 1 commit into
KhronosGroup:mainfrom
charles-lunarg:cleanup_realloc_usage

Conversation

@charles-lunarg

Copy link
Copy Markdown
Collaborator

Makes sure all calls to realloc have their return value put into a new variable. That way we don't lose the pointer to the original allocation in case realloc returns NULL and we need to free the original allocation.

@ci-tester-lunarg

Copy link
Copy Markdown

CI Vulkan-Loader build queued with queue ID 582411.

@ci-tester-lunarg

Copy link
Copy Markdown

CI Vulkan-Loader build queued with queue ID 582428.

@ci-tester-lunarg

Copy link
Copy Markdown

CI Vulkan-Loader build # 3283 running.

@ci-tester-lunarg

Copy link
Copy Markdown

CI Vulkan-Loader build # 3283 failed.

Makes sure all calls to realloc have their return value put into a new variable.
That way we don't lose the pointer to the original allocation in case realloc
returns NULL and we need to free the original allocation.
@ci-tester-lunarg

Copy link
Copy Markdown

CI Vulkan-Loader build queued with queue ID 582454.

@ci-tester-lunarg

Copy link
Copy Markdown

CI Vulkan-Loader build queued with queue ID 582471.

@ci-tester-lunarg

Copy link
Copy Markdown

CI Vulkan-Loader build # 3285 running.

@ci-tester-lunarg

Copy link
Copy Markdown

CI Vulkan-Loader build # 3285 passed.

@charles-lunarg charles-lunarg merged commit 208e174 into KhronosGroup:main Nov 19, 2025
45 checks passed
@charles-lunarg charles-lunarg deleted the cleanup_realloc_usage branch November 19, 2025 03:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants