]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
loader: fix memory handling errors in module.c
authortsoome <tsoome@FreeBSD.org>
Mon, 13 May 2019 22:17:11 +0000 (22:17 +0000)
committertsoome <tsoome@FreeBSD.org>
Mon, 13 May 2019 22:17:11 +0000 (22:17 +0000)
commit33d8160d671f7c4bab128269769943c651cb9f0d
tree98a6b01c730822a18ae31e1969fa7522d33f9c54
parent2e88f995bf34b6079891337d067d3780fd461df1
loader: fix memory handling errors in module.c

file_loadraw():
check for file_alloc() and strdup() results.
we leak 'name'.

mod_load() does leak 'filename'.

mod_loadkld() does not need to check fp, file_discard() does check.
stand/common/module.c