summaryrefslogtreecommitdiff
path: root/lib/membuf.c
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2025-03-18 16:20:46 +0100
committerTom Rini <trini@konsulko.com>2025-04-03 16:54:49 -0600
commit44e763bd6624f23fe6d94340efb43c627b5ce4a7 (patch)
tree6c9732af20397ac2ce457c9f5b3c808b24cda398 /lib/membuf.c
parentf48f1705c357605f05f5a47b84c1c89dc33bec35 (diff)
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>
Diffstat (limited to 'lib/membuf.c')
-rw-r--r--lib/membuf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/membuf.c b/lib/membuf.c
index b13998ccdbd..695d16d051e 100644
--- a/lib/membuf.c
+++ b/lib/membuf.c
@@ -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);
}