Commit 0c5dc42d authored by Pavel Emelyanov's avatar Pavel Emelyanov

dump: Don't forget to close fdset when task dump ends

Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
parent 4a3861ac
......@@ -1285,7 +1285,7 @@ static int dump_one_task(const struct pstree_item *item)
int ret = -1;
struct parasite_dump_misc misc;
struct sk_queue sk_queue = { };
struct cr_fdset *cr_fdset;
struct cr_fdset *cr_fdset = NULL;
pr_info("========================================\n");
pr_info("Dumping task (pid: %d)\n", pid);
......@@ -1387,6 +1387,7 @@ static int dump_one_task(const struct pstree_item *item)
goto err;
}
err:
close_cr_fdset(&cr_fdset);
close_pid_proc();
err_free:
free_mappings(&vma_area_list);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment