Fix cpu samples memory leak

I added a test for the issue below because this causes a serious memory leak.

* https://github.com/cloudfoundry/dea_ng/pull/4