Re: [PATCH bpf-next] libbpf: fix memleak in libbpf_netlink_recv()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Andrii Nakryiko <andrii@xxxxxxxxxx> writes:

> Ensure that libbpf_netlink_recv() frees dynamically allocated buffer in
> all code paths.
>
> Cc: Toke Høiland-Jørgensen <toke@xxxxxxxxxx>
> Fixes: 9c3de619e13e ("libbpf: Use dynamically allocated buffer when receiving netlink messages")
> Signed-off-by: Andrii Nakryiko <andrii@xxxxxxxxxx>

Oops! I saw there were already 'goto done' labels in that block of code
so assumed it was all fine and didn't look closer. Thank you for the
fix!

-Toke


Acked-by: Toke Høiland-Jørgensen <toke@xxxxxxxxxx>





[Index of Archives]     [Linux Samsung SoC]     [Linux Rockchip SoC]     [Linux Actions SoC]     [Linux for Synopsys ARC Processors]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]


  Powered by Linux