When is this memory freed? And there's no way this is compiling actually, `pdf` should be at least of time `CGaussian*` and probably the constructor called as `CGaussian`.