]> git.dujemihanovic.xyz Git - u-boot.git/commit
sf: sf_ops: Stop leaking memory
authorMarek Vasut <marex@denx.de>
Sat, 12 Jul 2014 12:41:31 +0000 (18:11 +0530)
committerJagannadha Sutradharudu Teki <jaganna@xilinx.com>
Tue, 5 Aug 2014 18:48:01 +0000 (00:18 +0530)
commita52a178f0b4dce6a85a45ccea348be92fc7f1b6d
tree1eded5df5766c279cbc454407d6d3672225c0d65
parent25b4adbba018633b943a99322bfb2fb819c0bafb
sf: sf_ops: Stop leaking memory

It's usually a common pattern to free() the memory that we allocated.
Implement this here to stop leaking memory.

Signed-off-by: Marek Vasut <marex@denx.de>
Cc: Michal Simek <michal.simek@xilinx.com>
Reviewed-by: Jagannadha Sutradharudu Teki <jaganna@xilinx.com>
drivers/mtd/spi/sf_ops.c