summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBenny Baumann <BenBE@geshi.org>2021-10-03 01:03:17 +0200
committerBenBE <BenBE@geshi.org>2021-10-03 19:18:25 +0200
commitf75a8bc3a1131151181d6794000b10063400221e (patch)
tree504402496363c10d4ebaee21603d8159782ddebe
parentd520199e620427aa99c3911c77324ea8c8f88a29 (diff)
Memory leak on OpenBSD when querying full command line
-rw-r--r--openbsd/OpenBSDProcessList.c2
1 files changed, 2 insertions, 0 deletions
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);
}
/*

© 2014-2022 Faster IT GmbH | imprint | privacy policy