hwloc in 20.04 leaks memory
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
hwloc (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
This simple hwloc program leaks memory with the libhwloc-dev packages on 20.04. Building hwloc v2.1.0 from git source does not exhibit the same leak.
compute-240-10% cat /etc/issue
Ubuntu 20.04.3 LTS \n \l
compute-240-10% dpkg -l | grep hwloc-dev
ii libhwloc-dev:amd64 2.1.0+dfsg-4 amd64 Hierarchical view of the machine - static libs and headers
compute-240-10% gcc -fsanitize=leak hwloc-leak.c -lhwloc
compute-240-10% ./a.out
=======
==2036999==ERROR: LeakSanitizer: detected memory leaks
Direct leak of 88 byte(s) in 1 object(s) allocated from:
#0 0x7fbe675fa9c1 in __interceptor_
#1 0x7fbe671dda8c in lt__malloc (/lib/x86_
SUMMARY: LeakSanitizer: 88 byte(s) leaked in 1 allocation(s).
compute-240-10% cat hwloc-leak.c
#include <assert.h>
#include "hwloc.h"
int main(void)
{
hwloc_topology_t topology;
int err;
err = hwloc_topology_
assert(!err);
hwloc_
return 0;
}