Skip to content

[FIX] Fix memory leaks in BodyEntitySyncTest #562

@Miou-zora

Description

@Miou-zora

Bug Description

Memory leak(s) have been detected in the BodyEntitySyncTest test suite. These leaks must be identified, root-caused, and fixed to ensure the test passes cleanly under memory checking tools (e.g. Valgrind, AddressSanitizer).

Steps to Reproduce

  1. Build the project with memory checking enabled (e.g. AddressSanitizer or Valgrind).
  2. Run the BodyEntitySyncTest test suite.
  3. Observe memory leak reports in the output.

Expected Behavior

BodyEntitySyncTest runs to completion with no memory leaks reported.

Actual Behavior

One or more memory leaks are reported when running BodyEntitySyncTest under a memory checker.

Environment

  • OS: [e.g. Ubuntu 22.04]
  • Compiler: [e.g. Clang 15]
  • Vulkan SDK Version: [e.g. 1.3.268.0]
  • Engine² Version/Commit: [current main]

Additional Context

This fix is a prerequisite for making the memory leak check mandatory in CI.

Related Issues

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingrefactorCode Refactor

Type

No type

Projects

Status

Todo

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions