aboutsummaryrefslogtreecommitdiff
path: root/toys/pending/ps.c
diff options
context:
space:
mode:
authorRob Landley <rob@landley.net>2015-10-28 23:27:37 -0500
committerRob Landley <rob@landley.net>2015-10-28 23:27:37 -0500
commit75df3e5631422ffc3de0d31e04aa9be343190f3e (patch)
tree2bd69b219abe9a2b193ad0ad234587327f2d5fec /toys/pending/ps.c
parent7ab0e6ed60c10e78a536357832ef3859489f5083 (diff)
downloadtoybox-75df3e5631422ffc3de0d31e04aa9be343190f3e.tar.gz
Free more stuff in debug cleanup.
Tempted to convert the struct arg_list and ptr_len stuff to arrays and make the parsing table driven, but there's enough direct usages of each field it's not a net win.
Diffstat (limited to 'toys/pending/ps.c')
-rw-r--r--toys/pending/ps.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/toys/pending/ps.c b/toys/pending/ps.c
index a874c369..6c63d550 100644
--- a/toys/pending/ps.c
+++ b/toys/pending/ps.c
@@ -601,8 +601,13 @@ void ps_main(void)
dirtree_read("/proc", do_ps);
if (CFG_TOYBOX_FREE) {
+ free(TT.gg.ptr);
+ free(TT.GG.ptr);
free(TT.pp.ptr);
+ free(TT.ss.ptr);
free(TT.tt.ptr);
+ free(TT.uu.ptr);
+ free(TT.UU.ptr);
llist_traverse(TT.fields, free);
}
}