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

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