| commit | 03b974321bfdbe7a8bcc068c4044ba4debb89466 | [log] [tgz] |
|---|---|---|
| author | Patrick Rohr <prohr@google.com> | Thu Apr 17 08:37:01 2025 -0700 |
| committer | Patrick Rohr <prohr@google.com> | Thu Apr 17 08:38:01 2025 -0700 |
| tree | e72dc73963098e54dd350a68992b34f7d3c15732 | |
| parent | 926df9a9abae01ddbf414d1ae4376eea1d7ba0e3 [diff] |
Fix memory leak in NetBpfLoad The lambda was capturing btf by value instead of reference. This meant that btf__free was never called, because at the time of capture btf was null. This changes the lambda to capture btf by reference instead of by value. Test: TH Flag: EXEMPT mainline Bug: 411323352 Change-Id: I6c6637b10f16d48f9ae5b702e44883046b46e252