diff options
Diffstat (limited to 'usr/src/cmd/prstat/prstat.c')
-rw-r--r-- | usr/src/cmd/prstat/prstat.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/usr/src/cmd/prstat/prstat.c b/usr/src/cmd/prstat/prstat.c index 34f5feff05..944b122b7c 100644 --- a/usr/src/cmd/prstat/prstat.c +++ b/usr/src/cmd/prstat/prstat.c @@ -293,6 +293,7 @@ list_getsize(list_t *list) * Failure for some other reason. Prstat will use the size * already gathered from psinfo. */ + free(results); return; } for (id = list->l_head; id != NULL; id = id->id_next) { @@ -335,6 +336,7 @@ list_getsize(list_t *list) * gathered from psinfo. */ } + free(results); } /* |