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

libbpf-tools: Fix memory leaks in ksnoop/gethostlatency #3673

Merged
merged 1 commit into from
Nov 4, 2021

Conversation

chenhengqi
Copy link
Collaborator

There are memory leaks when attach a BPF program to multiple
targets in these tools. This is because we misuse the
bpf_program__attach_kprobe function, the returned struct bpf_link
object is not freed after use. Closes #3664.

Signed-off-by: Hengqi Chen [email protected]

There are memory leaks when attach a BPF program to multiple
targets in these tools. This is because we misuse the
bpf_program__attach_kprobe function, the returned struct bpf_link
object is not freed after use. Closes iovisor#3664.

Signed-off-by: Hengqi Chen <[email protected]>
@davemarchevsky
Copy link
Collaborator

[buildbot, test this please]

@davemarchevsky
Copy link
Collaborator

[buildbot, ok to test]

@davemarchevsky davemarchevsky merged commit 4d08181 into iovisor:master Nov 4, 2021
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.

Memory leaks in libbpf tools
2 participants