aboutsummaryrefslogtreecommitdiff
path: root/toys/pending/netstat.c
diff options
context:
space:
mode:
authorAshwini Sharma <ak.ashwini1981.gmail.com>2014-09-18 11:47:42 -0500
committerAshwini Sharma <ak.ashwini1981.gmail.com>2014-09-18 11:47:42 -0500
commit14a11ed5ebfb2309a3fdfea1ce7a741519e44693 (patch)
tree0f9b4170a6169cece9f5ea4e7aa85ce34fe011c8 /toys/pending/netstat.c
parent40b20421e42cce9834d13ab52ac58efd78838ede (diff)
downloadtoybox-14a11ed5ebfb2309a3fdfea1ce7a741519e44693.tar.gz
A few fixes for issues reported in static analysis.
Diffstat (limited to 'toys/pending/netstat.c')
-rw-r--r--toys/pending/netstat.c1
1 files changed, 1 insertions, 0 deletions
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);