From 7cdec9dff8b6ca3b7993c5a4bbc205d6fab67ccf Mon Sep 17 00:00:00 2001 From: Karel Zak Date: Tue, 14 Jul 2020 11:56:15 +0200 Subject: [PATCH] libuuid: (test) cleanup unused memory [coverity scan] Signed-off-by: Karel Zak --- misc-utils/test_uuidd.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/misc-utils/test_uuidd.c b/misc-utils/test_uuidd.c index 3f38fa430..779b28dfd 100644 --- a/misc-utils/test_uuidd.c +++ b/misc-utils/test_uuidd.c @@ -206,6 +206,8 @@ static void create_nthreads(process_t *proc, size_t index) LOG(2, (stderr, "%d: thread exited [tid=%jd,return=%d]\n", proc->pid, (intmax_t) th->tid, th->retval)); } + + free(threads); } static void create_nprocesses(void) @@ -243,6 +245,8 @@ static void create_nprocesses(void) (stderr, "process exited [pid=%d,status=%d]\n", proc->pid, proc->status)); } + + free(process); } static void object_dump(size_t idx, object_t *obj)