couple more use after frees for gear deletion.
also rearranged lines a bit and added a redundant exit to try to proof things a bit.
more evidence we need rust.
void fpcrtl_halt(int num) {
__coverity_panic__();
}
int fpcrtl_abs(int num) {
return num >= 0 ? num : -num;
}