Memory leak fixed in noise detector.