userns: don't leak root user
[linux-2.6.git] / kernel / user_namespace.c
index d055d98..85af942 100644 (file)
@@ -81,6 +81,7 @@ void free_user_ns(struct kref *kref)
        struct user_namespace *ns;
 
        ns = container_of(kref, struct user_namespace, kref);
+       free_uid(ns->root_user);
        kfree(ns);
 }