Fix small resource leak (memory).

Reviewed by:	gad
MFC after:	1 week
This commit is contained in:
Alexander Leidinger 2009-11-17 07:29:35 +00:00
parent ad035daf08
commit 5b412ffb6b
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=199351

View File

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