cuInit() memory leak

The CUDA API has a cuInit() call.

There is no cuExit() call.

That wouldn’t be so bad, if it were not for the fact that cuInit() leaks memory.

Either cuInit() should not leak resources, or there should be a cuExit()

I verified this with valgrind on Linux.

I get a whole bunch of leaks, one of which is even a pthread leak.

==8766== 384 bytes in 1 blocks are possibly lost in loss record 741 of 890
==8766==    at 0x3B84711A: calloc (vg_replace_malloc.c:760)
==8766==    by 0x3AC284F6: allocate_dtv (dl-tls.c:286)
==8766==    by 0x3AC284F6: _dl_allocate_tls (dl-tls.c:530)
==8766==    by 0x3DEAB227: allocate_stack (allocatestack.c:627)
==8766==    by 0x3DEAB227: pthread_create@@GLIBC_2.2.5 (pthread_create.c:644)
==8766==    by 0x3C2D80DE: ??? (in /usr/lib/x86_64-linux-gnu/
==8766==    by 0x3C2CD025: ??? (in /usr/lib/x86_64-linux-gnu/
==8766==    by 0x3C29E104: ??? (in /usr/lib/x86_64-linux-gnu/
==8766==    by 0x3C33CF33: cuInit (in /usr/lib/x86_64-linux-gnu/
==8766==    by 0x42A172: osino_client_init (osino_cuda.c:78)
==8766==    by 0x4092EF: ctrl_init() (ctrl.cpp:344)
==8766==    by 0x4090A9: ctrl_create(int, int, float) (ctrl.cpp:367)
==8766==    by 0x4062C9: main (sdlmain.cpp:451)