Plug a memory-leak.

"I think you're right" by:	jake
This commit is contained in:
Poul-Henning Kamp 2002-10-15 18:58:38 +00:00
parent 9736c8f03a
commit 7c61d7858c

View File

@ -1531,6 +1531,7 @@ linker_hints_lookup(const char *path, int pathlen, const char *modname,
printf("warning: KLD '%s' is newer than the linker.hints"
" file\n", result);
bad:
free(pathbuf, M_LINKER);
if (hints)
free(hints, M_TEMP);
if (nd.ni_vp != NULL) {