OS-1976 tmp_inactive uses memory after freeing