Here i do what i think is correct. Release of kernel and program cannot be inside release_clobj. And there is a double release.