mirror of
https://github.com/apache/nuttx.git
synced 2026-05-26 18:56:10 +08:00
pynuttx: fix memleak
Only need to check used node, excluding free nodes. Signed-off-by: xuxingliang <xuxingliang@xiaomi.com>
This commit is contained in:
committed by
Alan C. Assis
parent
ca92c208c1
commit
b90638493a
@@ -114,7 +114,9 @@ class MMLeak(gdb.Command):
|
||||
sorted_addr = set()
|
||||
t = time.time()
|
||||
print("Gather memory nodes...", flush=True, end="")
|
||||
for node in memdump.dump_nodes(heaps, {"no_pid": mm.PID_MM_MEMPOOL}):
|
||||
for node in memdump.dump_nodes(
|
||||
heaps, {"no_pid": mm.PID_MM_MEMPOOL, "used": True}
|
||||
):
|
||||
nodes_dict[node.address] = node
|
||||
sorted_addr.add(node.address)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user