summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authornetchild <netchild@FreeBSD.org>2009-11-24 10:46:17 +0000
committernetchild <netchild@FreeBSD.org>2009-11-24 10:46:17 +0000
commit0442acc99f69abbf98795ad31f9b4334aba7e96b (patch)
tree2b48ebcf3aed333ff58c9ae81dbe14e64ca1ab6a /bin
parent2a4ab4b2495be53e7e89e238359c79957fd2652d (diff)
downloadFreeBSD-src-0442acc99f69abbf98795ad31f9b4334aba7e96b.zip
FreeBSD-src-0442acc99f69abbf98795ad31f9b4334aba7e96b.tar.gz
MFC r199351:
Fix small resource leak (memory). Reviewed by: gad
Diffstat (limited to 'bin')
-rw-r--r--bin/ps/keyword.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/bin/ps/keyword.c b/bin/ps/keyword.c
index ade8123..f0b3009 100644
--- a/bin/ps/keyword.c
+++ b/bin/ps/keyword.c
@@ -330,6 +330,7 @@ findvar(char *p, int user, char **header)
errx(1, "malloc failed");
snprintf(realfmt, rflen, "%s=%s", v->alias, hp);
parsefmt(realfmt, user);
+ free(realfmt);
}
return ((VAR *)NULL);
}
OpenPOWER on IntegriCloud