sonic-net / sonic-snmpagent

A net-snmpd agentx subagent for SONiC
Other
15 stars 113 forks source link

[201811] Fix sonic_ax_impl memory leak in LLDPLocManAddrUpdater. #250

Closed liuh-80 closed 2 years ago

liuh-80 commented 2 years ago

- What I did Fix sonic_ax_impl memory leak in LLDPLocManAddrUpdater.

- How I did it In LLDPLocManAddrUpdater.reinit_data(), reset man_addr_list to empty list before append new data.

- How to verify it Pass all UT. Manually check there is no memory leak.

- Description for the changelog Fix sonic_ax_impl memory leak in LLDPLocManAddrUpdater.

liuh-80 commented 2 years ago

Because sonic-snmpagent is a submodule of sonic-buildimage, so we need a submodule update PR in sonic-buildimage repo.