It appears that this statement got lost during patch merging. We don't want to free the node which we just added. Signed-off-by: Andrew Morton --- 25-akpm/mm/mempolicy.c | 1 + 1 files changed, 1 insertion(+) diff -puN mm/mempolicy.c~shared_policy_replace-fix mm/mempolicy.c --- 25/mm/mempolicy.c~shared_policy_replace-fix 2005-01-19 13:38:01.416543440 -0800 +++ 25-akpm/mm/mempolicy.c 2005-01-19 13:38:19.355816256 -0800 @@ -1041,6 +1041,7 @@ restart: } n->end = start; sp_insert(sp, new2); + new2 = NULL; break; } else n->end = start; _