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); }