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:
Simon Glass
2025-03-18 16:20:46 +01:00
committed by Tom Rini
parent f48f1705c3
commit 44e763bd66

View File

@@ -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);
}