[systemd-devel] find_device() and FOREACH_DEVICE_DEVLINK memory leaks on "systemd-249"
Lennart Poettering
lennart at poettering.net
Mon Mar 21 17:22:54 UTC 2022
On So, 13.03.22 19:14, Tony Rodriguez (unixpro1970 at gmail.com) wrote:
> Valgrind is reporting "still reachable" memory leak (2 blocks) when calling
> find_device() and FOREACH_DEVICE_DEVLINK against "systemd-249". In my case,
> they are both called within fstab-generator.c on "systemd-249". Only code
> modifications, on my end, are within fstab-generator.c
The mempool stuff is not really "leaked": it's an allocation cache,
i.e. subsequent calls will reuse the already allocated objects. The
stuff is hence reachable via the allocation cache.
Lennart
--
Lennart Poettering, Berlin
More information about the systemd-devel
mailing list