update leak memory management