From 14a11ed5ebfb2309a3fdfea1ce7a741519e44693 Mon Sep 17 00:00:00 2001 From: Ashwini Sharma Date: Thu, 18 Sep 2014 11:47:42 -0500 Subject: A few fixes for issues reported in static analysis. --- toys/pending/netstat.c | 1 + 1 file changed, 1 insertion(+) (limited to 'toys/pending/netstat.c') diff --git a/toys/pending/netstat.c b/toys/pending/netstat.c index 55be7726..59355638 100644 --- a/toys/pending/netstat.c +++ b/toys/pending/netstat.c @@ -468,6 +468,7 @@ static void get_pid_list(void) strcpy(path + length - (sizeof("cmdline")-1), "fd"); progname = append_pathandfile(pid, (char *)get_basename(toybuf)); //e.g. progname = 2054/gnome-keyring-daemon extract_inode(path, progname); + free(progname); }//end of while. closedir(dp); -- cgit v1.2.3