Plug a memory-leak.
"I think you're right" by: jake
This commit is contained in:
parent
9736c8f03a
commit
7c61d7858c
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user