static void extents_free_all (
struct procps_meminfo *info)
{
- do {
+ while (info->extents) {
struct stacks_extent *p = info->extents;
info->extents = info->extents->next;
free(p);
- } while (info->extents);
+ };
} // end: extents_free_all
static void extents_free_all (
struct procps_pidsinfo *info)
{
- struct stacks_extent *ext = info->extents;
-
- while (ext) {
- info->extents = ext->next;
- free(ext);
- ext = info->extents;
+ while (info->extents) {
+ struct stacks_extent *p = info->extents;
+ info->extents = info->extents->next;
+ free(p);
};
- info->dirty_stacks = 0;
} // end: extents_free_all
static void extents_free_all (
struct ext_support *this)
{
- do {
+ while (this->extents) {
struct stacks_extent *p = this->extents;
this->extents = this->extents->next;
free(p);
- } while (this->extents);
+ };
} // end: extents_free_all
static void extents_free_all (
struct ext_support *this)
{
- do {
+ while (this->extents) {
struct stacks_extent *p = this->extents;
this->extents = this->extents->next;
free(p);
- } while (this->extents);
+ };
} // end: extents_free_all
static void extents_free_all (
struct procps_vmstat *info)
{
- do {
+ while (info->extents) {
struct stacks_extent *p = info->extents;
info->extents = info->extents->next;
free(p);
- } while (info->extents);
+ };
} // end: extents_free_all