]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
kill: deallocate follow_ups [assan]
authorKarel Zak <kzak@redhat.com>
Mon, 9 Dec 2019 12:20:04 +0000 (13:20 +0100)
committerKarel Zak <kzak@redhat.com>
Mon, 9 Dec 2019 12:20:04 +0000 (13:20 +0100)
Signed-off-by: Karel Zak <kzak@redhat.com>
misc-utils/kill.c

index cf4e7115452d8301d1fadb6e9bc108c97d9463cd..91cc14c9abc0ba234fa2fc88f767963b938229b5 100644 (file)
@@ -494,6 +494,12 @@ int main(int argc, char **argv)
                }
        }
 
+       while (!list_empty(&ctl.follow_ups)) {
+               struct timeouts *x = list_entry(ctl.follow_ups.next,
+                                                 struct timeouts, follow_ups);
+               list_del(&x->follow_ups);
+               free(x);
+       }
        if (ct && nerrs == 0)
                return EXIT_SUCCESS;    /* full success */
        else if (ct == nerrs)