kill: deallocate follow_ups [assan]

Signed-off-by: Karel Zak <kzak@redhat.com>
This commit is contained in:
Karel Zak 2019-12-09 13:20:04 +01:00
parent 1395236acd
commit ded3735ef4
1 changed files with 6 additions and 0 deletions

View 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)