stat. freeing process resources when killing them