android / android/games-samples
Memory Leak
- Dominant language
- C++
- Stars
- 307
- Forks
- 138
- Avg merge
- 8d 11h
- Merged PRs (30d)
- 2
Description
https://github.com/android/games-samples/blob/32ff4ddc95617d8592c5859c23daccb3e92dd773/agdk/agdktunnel/app/src/main/cpp/native_engine.cpp#L173C11-L173C30
internalStoragePath is allocated here, but never released. It is passed to the constructor of DataLoaderStateMachine, but it is only used there; DataLoaderStateMachine doesn't accept ownership or responsibility to delete.
Contributor guide
Research direction
Start in agdk/agdktunnel/app/src/main/cpp/native_engine.cpp at line 173, then inspect the DataLoaderStateMachine constructor and its handling of internalStoragePath. The issue is complete when the allocated path has a clear release or ownership path without introducing a double release; verify the change with the sample's available checks.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp
- Domain
- game-dev, mobile-dev
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Clearly specified
- Newbie friendliness
- 52/100