From 99a9b04c131f99f6c72517fcfda6bee8e70928dd Mon Sep 17 00:00:00 2001 From: Vito Caputo Date: Tue, 30 Jul 2024 22:23:48 -0700 Subject: 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. --- src/libvmon/vmon.c | 2 ++ 1 file changed, 2 insertions(+) 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); -- cgit v1.2.3