ESRCH case handling, possible memory leak fix.