From: Dave Jones Date: Mon, 7 Apr 2014 22:39:32 +0000 (-0700) Subject: slub: fix leak of 'name' in sysfs_slab_add X-Git-Tag: v3.15-rc1~57^2~19 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=54b6a731025f9528d44945a72b1f4e5946bb2d80;p=pandora-kernel.git slub: fix leak of 'name' in sysfs_slab_add The failure paths of sysfs_slab_add don't release the allocation of 'name' made by create_unique_id() a few lines above the context of the diff below. Create a common exit path to make it more obvious what needs freeing. [vdavydov@parallels.com: free the name only if !unmergeable] Signed-off-by: Dave Jones Signed-off-by: Vladimir Davydov Cc: Pekka Enberg Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed