A missing securetty file is not an error.
[oweals/busybox.git] / procps / kill.c
index 2ef87aea6ade2451d5385fc9cc4c45b6993f28fd..cf5c412a8a16e7d7bb4569fb67ca4a426a865798 100644 (file)
@@ -127,7 +127,7 @@ do_it_now:
                        long* pidList;
 
                        pidList = find_pid_by_name(*argv);
-                       if (!pidList || *pidList<=0) {
+                       if (*pidList <= 0) {
                                errors++;
                                if (quiet==0)
                                        error_msg( "%s: no process killed", *argv);
@@ -142,9 +142,7 @@ do_it_now:
                                        }
                                }
                        }
-                       /* Note that we don't bother to free the memory
-                        * allocated in find_pid_by_name().  It will be freed
-                        * upon exit, so we can save a byte or two */
+                       free(pidList);
                        argv++;
                }
        }