aboutsummaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorAlexander Leidinger <netchild@FreeBSD.org>2009-11-17 07:29:35 +0000
committerAlexander Leidinger <netchild@FreeBSD.org>2009-11-17 07:29:35 +0000
commit5b412ffb6b23e5f9702c3115a88556af4b35d990 (patch)
tree58d28c162fc816ea060da3b2056d33635a4d5e56 /bin
parentad035daf08bb858aa89b2b39a637c9c19205126a (diff)
downloadsrc-5b412ffb6b23e5f9702c3115a88556af4b35d990.tar.gz
src-5b412ffb6b23e5f9702c3115a88556af4b35d990.zip
Fix small resource leak (memory).
Reviewed by: gad MFC after: 1 week
Notes
Notes: svn path=/head/; revision=199351
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 609c52e363b9..4524d9956665 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);
}