summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorVito Caputo <vcaputo@pengaru.com>2024-07-30 22:23:48 -0700
committerVito Caputo <vcaputo@pengaru.com>2024-07-30 22:23:48 -0700
commit99a9b04c131f99f6c72517fcfda6bee8e70928dd (patch)
tree14c99ff0c092f2add2cb190ef4f0309e15749be3 /src
parent8badf4457fb32ec6839e7c81bf960b5fadd6b639 (diff)
libvmon: fix some small memory leaks
Funny how long one can ignore something like this in their window manager when X resources are in play, plus having 16G RAM helps.
Diffstat (limited to 'src')
-rw-r--r--src/libvmon/vmon.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/libvmon/vmon.c b/src/libvmon/vmon.c
index fd8fad9..af3c3d8 100644
--- a/src/libvmon/vmon.c
+++ b/src/libvmon/vmon.c
@@ -270,7 +270,9 @@ static sample_ret_t proc_sample_stat(vmon_t *vmon, vmon_proc_t *proc, vmon_proc_
try_free((void **)&(*store)->comm);
try_close(&(*store)->cmdline_fd);
try_free((void **)&(*store)->cmdline);
+ try_free((void **)&(*store)->argv);
try_close(&(*store)->wchan_fd);
+ try_free((void **)&(*store)->wchan);
try_close(&(*store)->stat_fd);
try_free((void **)&(*store)->exe);
© All Rights Reserved