Closed Karolis1661 closed 1 year ago
ping @ynezz @hauke
If the execution reaches the goto out statement, the msg variable will not be freed before returning.
If the execution reaches the goto out statement, the msg variable will not be freed before returning.
IMO the code is correct, you shouldn't free the buffer once nl_send_auto_complete()
succeeds, so probably the memleak is caused by something else.
I believe the report is correct. Other places do free the original msg after calling nl_send_auto_complete.
Describe the bug
Netifd version: 2023-02-25
Scenario: Plugging in and out ethernet cable causes netifd unreasonable memory grow when vlans configured, inspected via /proc/PID/status by vmRSS line.
Found function which might be the case in system-linux.c:
seems like this
goto out;
skipsnlmsg_free(msg);
After removing 'goto out;' and testing, seems like vmRSS does not grow unreasonably, altought it grows and decreases, but stays more likely stable.
Is this intentional or a memory leak?