Florin Malita dcec4c3bdc UBI: fix leak in ubi_scan_erase_peb
Coverity (1769) found the following problem: if the erase counter
overflow check triggers, ec_hdr is leaked.

Moving the allocation after the overflow check should take care of it.

Signed-off-by: Florin Malita <fmalita@gmail.com>
Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
2007-10-14 13:10:20 +03:00
..
2007-05-09 08:57:56 +02:00
2007-10-14 13:10:20 +03:00
2007-08-03 12:42:40 +01:00
2007-08-11 15:47:41 -07:00
2007-03-08 09:17:43 +00:00
2007-08-03 12:42:40 +01:00
2006-12-11 09:43:38 +00:00