[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[SCM] Hurd branch, master, updated. 862bdf3d26ac8fd61c7f7f6664bf0999774b
From: |
Samuel Thibault |
Subject: |
[SCM] Hurd branch, master, updated. 862bdf3d26ac8fd61c7f7f6664bf0999774be434 |
Date: |
Thu, 26 Aug 2010 21:49:39 +0000 |
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Hurd".
The branch, master has been updated
via 862bdf3d26ac8fd61c7f7f6664bf0999774be434 (commit)
from 9ad43da4ff755b8e48e1b2f51271766061541dac (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit 862bdf3d26ac8fd61c7f7f6664bf0999774be434
Author: Jeremie Koenig <address@hidden>
Date: Wed Aug 25 14:31:56 2010 +0200
libps (_proc_stat_free): Fix memory leak
The thread_waits field was never freed; this change adds the code to do
so if the corresponding flag is set.
Users are also warned of the consequences, namely, that they should not
free process proc_stats before all their associated thread ones are
gone, since the latter may reference the former's thread_waits field.
However, with the normal interface (ie. ps_context_free), all
proc_stats are freed at once, so this is not an issue.
* libps/procstat.c (_proc_stat_free): Free ps->thread_waits if
PSTAT_THREAD_WAITS flag is set.
* libps/ps.h (_proc_stat_free): Document that thread proc_stats must be
freed before process proc_stat can be.
-----------------------------------------------------------------------
Summary of changes:
libps/procstat.c | 2 ++
libps/ps.h | 4 +++-
2 files changed, 5 insertions(+), 1 deletions(-)
hooks/post-receive
--
Hurd
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [SCM] Hurd branch, master, updated. 862bdf3d26ac8fd61c7f7f6664bf0999774be434,
Samuel Thibault <=