Commit 2dc58309 authored by Cyrill Gorcunov's avatar Cyrill Gorcunov

dump: Don't forget to close fds

Signed-off-by: 's avatarCyrill Gorcunov <gorcunov@gmail.com>
parent a8f8eb9c
...@@ -668,7 +668,6 @@ static int get_task_regs(pid_t pid, struct core_entry *core) ...@@ -668,7 +668,6 @@ static int get_task_regs(pid_t pid, struct core_entry *core)
assign_array(core->u.arch.fpregs, fpregs, xmm_space); assign_array(core->u.arch.fpregs, fpregs, xmm_space);
assign_array(core->u.arch.fpregs, fpregs, padding); assign_array(core->u.arch.fpregs, fpregs, padding);
pr_info("OK\n");
ret = 0; ret = 0;
err: err:
...@@ -1269,6 +1268,8 @@ int cr_dump_tasks(pid_t pid, struct cr_options *opts) ...@@ -1269,6 +1268,8 @@ int cr_dump_tasks(pid_t pid, struct cr_options *opts)
goto err; goto err;
if (dump_task_thread(item->threads[i], cr_fdset)) if (dump_task_thread(item->threads[i], cr_fdset))
goto err; goto err;
close_cr_fdset(cr_fdset);
free_cr_fdset(&cr_fdset);
} }
} }
......
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