Skip to content
Snippets Groups Projects
Commit a52a178f authored by Marek Vasut's avatar Marek Vasut Committed by Jagannadha Sutradharudu Teki
Browse files

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: default avatarMarek Vasut <marex@denx.de>
Cc: Michal Simek <michal.simek@xilinx.com>
Reviewed-by: default avatarJagannadha Sutradharudu Teki <jaganna@xilinx.com>
parent 25b4adbb
No related branches found
No related tags found
No related merge requests found
......@@ -421,6 +421,7 @@ int spi_flash_cmd_read_ops(struct spi_flash *flash, u32 offset,
data += read_len;
}
free(cmd);
return ret;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment