summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>2002-10-15 18:58:38 +0000
committerphk <phk@FreeBSD.org>2002-10-15 18:58:38 +0000
commit55f0babdd0feab7dc92e60db61494018f3d712de (patch)
treefc2d0ac6c1fcf6ff1934c35bef3cc3d24e7c0754 /sys
parent2208595682358e3c4bb97e4cb1183565861a49cd (diff)
downloadFreeBSD-src-55f0babdd0feab7dc92e60db61494018f3d712de.zip
FreeBSD-src-55f0babdd0feab7dc92e60db61494018f3d712de.tar.gz
Plug a memory-leak.
"I think you're right" by: jake
Diffstat (limited to 'sys')
-rw-r--r--sys/kern/kern_linker.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/kern/kern_linker.c b/sys/kern/kern_linker.c
index 2952be0..0755021 100644
--- a/sys/kern/kern_linker.c
+++ b/sys/kern/kern_linker.c
@@ -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) {
OpenPOWER on IntegriCloud