]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
block: Fix memory leak in alloc_disk_node()
authorJerome Marchand <jmarchan@redhat.com>
Fri, 23 Nov 2007 08:17:53 +0000 (09:17 +0100)
committerJens Axboe <jens.axboe@oracle.com>
Tue, 27 Nov 2007 08:19:40 +0000 (09:19 +0100)
commitc7674030e5eb83d9ba29318fb9b3ccedf84d583e
treecb11cd412c739d2cfcc5d4494ccb0ba8fc8f9920
parent8c8d7214d1b35726e950db1f73317e28e827f1cd
block: Fix memory leak in alloc_disk_node()

Fix a memory leak in alloc_disk_node(). Don't forget to free 'dkstats' when the allocation of 'part' failed.

Signed-off-by: Jerome Marchand <jmarchan@redhat.com>
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
block/genhd.c