kext_inject: fix memory leak