[ruamoko] Clean up some memory leaks

So many sieves.
This commit is contained in:
Bill Currie 2023-03-04 00:50:27 +09:00
parent c28ffbb766
commit 44ad372adb

View file

@ -317,6 +317,9 @@ run_progs (void *data)
thread->pr->debug_handler (prd_terminate, &thread->return_code,
thread->pr->debug_data);
}
PR_Shutdown (thread->pr);
free (thread->pr);
thread->pr = 0;
return thread;
}
@ -473,6 +476,7 @@ main (int argc, char **argv)
ret = thread_data.a[main_ind]->return_code;
}
Cbuf_Delete (qwaq_cbuf);
Sys_Shutdown ();
return ret;
}