Skip to content

Fix/memory alloc - #25

Open
Ambuj-Choudha wants to merge 2 commits into
Vertical-Beach:mainfrom
Ambuj-Choudha:fix/memory-alloc
Open

Fix/memory alloc#25
Ambuj-Choudha wants to merge 2 commits into
Vertical-Beach:mainfrom
Ambuj-Choudha:fix/memory-alloc

Conversation

@Ambuj-Choudha

Copy link
Copy Markdown

This pull request makes important corrections to memory allocation patterns and parameter ordering in the BYTETracker implementation, improving both code safety and clarity.

Memory allocation fixes:

  • In BYTETracker.cpp, corrected the allocation of arrays (cost_ptr, x_c, and y_c) to use the correct sizes, preventing potential memory errors. [1] [2]

Interface consistency:

  • In BYTETracker.h, reordered the parameters a_unmatched and b_unmatched in the BYTETracker class method signature for consistency and clarity.

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.

1 participant