commit | 05a4412f11e9f48c8a67c48cd2fc71684873bb63 | [log] [tgz] |
---|---|---|
author | Mark Wielaard <mjw@redhat.com> | Tue Dec 24 10:37:58 2013 +0100 |
committer | Mark Wielaard <mjw@redhat.com> | Tue Dec 31 13:58:32 2013 +0100 |
tree | 4bbf1f0f691e5906a3071a5d7c5c4ef4e4baf80f | |
parent | b20ca0bd7fba0743fa97df2d42f6fd3c7b206039 [diff] |
libdwfl: Fix memory leak in linux-core-attach. Allow reiterating threads. core_next_thread would allocate a new thread_arg each time but never free it. We only need one active thread_arg to keep the state. Free it when there are no more threads. It was also not possible to start walking all threads in the core again. Just reset the note offset at the start. Signed-off-by: Mark Wielaard <mjw@redhat.com>