From 6f2f0331425df9510402d9488206433ae1f498ea Mon Sep 17 00:00:00 2001
From: Qualys Security Advisory <qsa@qualys.com>
Date: Thu, 1 Jan 1970 00:00:00 +0000
Subject: [PATCH] pidof: Do not memleak the contents of proc_t.

Just like "pgrep: Do not memleak the contents of proc_t."
---
 pidof.c | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/pidof.c b/pidof.c
index 8159147d..e73c23e7 100644
--- a/pidof.c
+++ b/pidof.c
@@ -158,7 +158,6 @@ static void select_procs (void)
 			safe_free(root_link);
 
 			if (!match) {  /* root check failed */
-				memset (&task, 0, sizeof (task));
 				continue;
 			}
 		}
@@ -233,8 +232,6 @@ static void select_procs (void)
 			}
 
 		}
-
-		memset (&task, 0, sizeof (task));
 	}
 
 	closeproc (ptp);
-- 
2.40.0