I recently coded a program which simply creates a OpenGL context with GLX and X11, I made sure to quit the program properly and to delete everything I allocated but valgrind keeps saying :
==3459== in use at exit: 162,297 bytes in 62 blocks
==3459== total heap usage: 18,005 allocs, 17,943 frees, 27,930,411 bytes alloc
After reading my code again and again to find them I wondered if the errors come from the fglrx driver itself. I am using the fglrx-experimental-13 package in Ubuntu.
You can find attached the code I used.