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-04-03 16:54:49 -06:00
committed by Tom Rini
parent f48f1705c3
commit 44e763bd66
+1 -1
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);
}