summaryrefslogtreecommitdiff
path: root/libps/proclist.c
diff options
context:
space:
mode:
Diffstat (limited to 'libps/proclist.c')
-rw-r--r--libps/proclist.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/libps/proclist.c b/libps/proclist.c
index 50aed73a..2201cadc 100644
--- a/libps/proclist.c
+++ b/libps/proclist.c
@@ -63,10 +63,8 @@ proc_stat_list_clone (struct proc_stat_list *pp, struct proc_stat_list **copy)
if (!new || !procs)
{
- if (new)
- free (new);
- if (procs)
- free (procs);
+ free (new);
+ free (procs);
return ENOMEM;
}