Running opengl program high video memory cost at centos used K1200

My program costing video memory is normal, but it leaked hundreds MB video memory to X. When it quit, X video memory is down. to 160MB.
I use nvidia-dump tools dump log and nvidia-smi result(The second process is mine) here: