]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
libuuid: (test) cleanup unused memory [coverity scan]
authorKarel Zak <kzak@redhat.com>
Tue, 14 Jul 2020 09:56:15 +0000 (11:56 +0200)
committerKarel Zak <kzak@redhat.com>
Tue, 14 Jul 2020 09:56:15 +0000 (11:56 +0200)
Signed-off-by: Karel Zak <kzak@redhat.com>
misc-utils/test_uuidd.c

index 3f38fa4306c861433eaa0ac7fd6e39dcd8d13d72..779b28dfde14613415e715d58a9835306c0bc9e3 100644 (file)
@@ -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)