summaryrefslogtreecommitdiff
path: root/proclist.c
diff options
context:
space:
mode:
Diffstat (limited to 'proclist.c')
-rw-r--r--proclist.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/proclist.c b/proclist.c
index 4dd6ab31..16cef9d6 100644
--- a/proclist.c
+++ b/proclist.c
@@ -63,7 +63,6 @@ proclist_make_node (process_t process)
.cleanup = free,
};
struct proclist_node *pl;
- struct node *np;
pl = malloc (sizeof *pl);
if (! pl)
@@ -72,10 +71,6 @@ proclist_make_node (process_t process)
memset (pl, 0, sizeof *pl);
pl->process = process;
- np = procfs_make_node (&ops, pl);
- if (! np)
- free (pl);
-
- return np;
+ return procfs_make_node (&ops, pl);
}