cmd_nand: fix a memory leak in nand_dump function
authorMasahiro Yamada <yamada.m@jp.panasonic.com>
Thu, 11 Jul 2013 08:27:12 +0000 (17:27 +0900)
committerScott Wood <scottwood@freescale.com>
Thu, 22 Aug 2013 22:25:02 +0000 (17:25 -0500)
commite40520b5b585c82d90e94c54cb3035b277e8280f
tree8e73dcba43fa2e2668c1125947203559624eef2a
parent6612ab33956ae09c5ba2fde9c1540b519625ba37
cmd_nand: fix a memory leak in nand_dump function

If datbuf = memalign(ARCH_DMA_MINALIGN, nand->writesize);
succeeds and
  oobbuf = memalign(ARCH_DMA_MINALIGN, nand->oobsize);
fails, nand_dump function should free databuf.

Signed-off-by: Masahiro Yamada <yamada.m@jp.panasonic.com>
common/cmd_nand.c