]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - security/selinux/hooks.c
[PATCH] SELinux: memory leak in selinux_sb_copy_data()
[linux-2.6-omap-h63xx.git] / security / selinux / hooks.c
index db845cbd584138a25e569f78c7c11c4d587dafdc..87302a49067bd091d3bfa970524088b929f5e298 100644 (file)
@@ -1945,6 +1945,7 @@ static int selinux_sb_copy_data(struct file_system_type *type, void *orig, void
        } while (*in_end++);
 
        copy_page(in_save, nosec_save);
+       free_page((unsigned long)nosec_save);
 out:
        return rc;
 }