From f75a8bc3a1131151181d6794000b10063400221e Mon Sep 17 00:00:00 2001 From: Benny Baumann Date: Sun, 3 Oct 2021 01:03:17 +0200 Subject: [PATCH] Memory leak on OpenBSD when querying full command line --- openbsd/OpenBSDProcessList.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/openbsd/OpenBSDProcessList.c b/openbsd/OpenBSDProcessList.c index a89303ac..476af61d 100644 --- a/openbsd/OpenBSDProcessList.c +++ b/openbsd/OpenBSDProcessList.c @@ -255,6 +255,8 @@ static void OpenBSDProcessList_updateProcessName(kvm_t* kd, const struct kinfo_p } Process_updateCmdline(proc, s, start, end); + + free(s); } /*