mirror of
https://source.denx.de/u-boot/u-boot.git
synced 2026-06-02 09:46:37 +03:00
membuf: Correct implementation of membuf_dispose()
This should free the pointer, not the address of the pointer. Fix it. Signed-off-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
@@ -384,6 +384,6 @@ void membuf_uninit(struct membuf *mb)
|
||||
|
||||
void membuf_dispose(struct membuf *mb)
|
||||
{
|
||||
free(&mb->start);
|
||||
free(mb->start);
|
||||
membuf_uninit(mb);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user