]> git.ipfire.org Git - thirdparty/util-linux.git/commit
lsns: fix the memory leak.
authorlishengyu <lishengyu@uniontech.com>
Thu, 23 Jun 2022 06:02:49 +0000 (14:02 +0800)
committerlishengyu <lishengyu@uniontech.com>
Thu, 23 Jun 2022 06:04:02 +0000 (14:04 +0800)
commit395f3baed6df1eb736c872ecaa3aa2f05c5dc111
tree19fd99a3e9a867bb57699e2d632c8c24d6b0eb0e
parent90eeee21c69aa805709376ad8282e68b5bd65c34
lsns: fix the memory leak.

==28129== 96 bytes in 3 blocks are possibly lost in loss record 1 of 4
==28129==    at 0x4837B65: calloc (vg_replace_malloc.c:752)
==28129==    by 0x405C83: xcalloc (xalloc.h:60)
==28129==    by 0x405C83: netnsid_cache_add (lsns.c:389)
==28129==    by 0x405C83: get_netnsid (lsns.c:486)
==28129==    by 0x405C83: read_process (lsns.c:549)
==28129==    by 0x403FB4: read_processes (lsns.c:586)
==28129==    by 0x403FB4: main (lsns.c:1417)
==28129==
==28129== 119,664 (384 direct, 119,280 indirect) bytes in 1 blocks are definitely lost in loss record 4 of 4
==28129==    at 0x4837B65: calloc (vg_replace_malloc.c:752)
==28129==    by 0x4055F5: xcalloc (xalloc.h:60)
==28129==    by 0x4055F5: read_process (lsns.c:516)
==28129==    by 0x403FB4: read_processes (lsns.c:586)
==28129==    by 0x403FB4: main (lsns.c:1417)
sys-utils/lsns.c