Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] _z_unicast_handle_transport_message leaks memory #861

Open
pdematteis opened this issue Jan 27, 2025 · 1 comment
Open

[Bug] _z_unicast_handle_transport_message leaks memory #861

pdematteis opened this issue Jan 27, 2025 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@pdematteis
Copy link

Describe the bug

The function _z_unicast_handle_transport_message() in transport/unicast/rx.c, while handling out-of-order _Z_MID_T_FRAME messages, leaks memory.
The following code should be added to cleanup dropped messages:

for (size_t i = 0; i < _z_svec_len(&t_msg->_body._frame._messages); i++) {
  _z_msg_clear(_z_network_message_svec_get(&t_msg->_body._frame._messages, i));
}

To reproduce

.

System info

.

@pdematteis pdematteis added the bug Something isn't working label Jan 27, 2025
@sashacmc
Copy link
Member

@pdematteis, thanks, we'll look into it.

@sashacmc sashacmc assigned sashacmc and jean-roland and unassigned sashacmc Jan 27, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants