I tried executing this command "show memory debug leaks" on a Cisco switch with memory leak problem, I lost connectivity with the switch as soon as I executed the command (Switch cpu utilization which was 6 % before went up to 100%) and the network was unresponsive for nearly 30 minutes.
Below is the Log details
Regards
Mayur