Memory leak with dynamic clients