small fix regarding assignment of type_run
fixes calls to free instead of cudaFree for the pthreads/serial versions