From c9388ed512ba4fa1cf47138fef84338daa6ff64a Mon Sep 17 00:00:00 2001 From: Jim Warner Date: Sat, 10 Oct 2015 00:00:00 -0500 Subject: [PATCH] library: re-enable --- proc/pids.c | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/proc/pids.c b/proc/pids.c index 15bcc8ce..a89938c5 100644 --- a/proc/pids.c +++ b/proc/pids.c @@ -1057,7 +1057,6 @@ static struct stacks_extent *alloc_stacks ( } // end: alloc_stacks -#if 0 // --------------------------- not (currently) needed static int dealloc_stacks ( struct procps_pidsinfo *info, struct stacks_extent **these) @@ -1075,7 +1074,6 @@ static int dealloc_stacks ( *these = NULL; return rc; } // end: dealloc_stacks -#endif // -------------------------- not (currently) needed static int fetch_helper ( @@ -1254,14 +1252,10 @@ PROCPS_EXPORT int procps_pids_read_open ( PROCPS_EXPORT int procps_pids_read_shut ( struct procps_pidsinfo *info) { - int rc; - if (info == NULL || ! READS_BEGUN) return -EINVAL; oldproc_close(info); - rc = extent_free(info, info->read); - info->read = NULL; - return rc; + return dealloc_stacks(info, &info->read); } // end: procps_pids_read_shut