Re: [PATCH bpf 2/2] tools: bpftool: remember to close the libbpf object after prog load

2018-06-20 Thread Song Liu
On Wed, Jun 20, 2018 at 11:42 AM, Jakub Kicinski wrote: > Remembering to close all descriptors and free memory may not seem > important in a user space tool like bpftool, but if we were to run > in batch mode the consumed resources start to add up quickly. Make > sure program load closes the libb

[PATCH bpf 2/2] tools: bpftool: remember to close the libbpf object after prog load

2018-06-20 Thread Jakub Kicinski
Remembering to close all descriptors and free memory may not seem important in a user space tool like bpftool, but if we were to run in batch mode the consumed resources start to add up quickly. Make sure program load closes the libbpf object (which unloads and frees it). Fixes: 49a086c201a9 ("bp