95f9694150
Motivation: newResourceLeakDetector(...) did not correctly pass the samplingInterval parameter and so it was ignored. Modification: ResourceLeakDetectorFactory.newResourceLeakDetector(Class, int) use the second parameter as the sampling interval of the newly created ResourceLeakDetector. Result: Fixes #10378