cvs commit: src/sys/kern imgact_elf.c
Alan Cox
alc at FreeBSD.org
Sat Jan 21 12:11:50 PST 2006
alc 2006-01-21 20:11:49 UTC
FreeBSD src repository
Modified files:
sys/kern imgact_elf.c
Log:
Avoid a vm object reference leak in a rarely used code path.
An executable contains at most one PT_INTERP program header. Therefore,
the loop that searches for it can terminate after it is found rather than
iterating over the entire set of program headers.
Eliminate an unneeded initialization.
Reviewed by: tegge
Revision Changes Path
1.175 +7 -10 src/sys/kern/imgact_elf.c
More information about the cvs-src
mailing list