commit | 42f5b8c6c3bfc9ad82dd72b841409a4aad9d379b | [log] [tgz] |
---|---|---|
author | Simon Glass <sjg@chromium.org> | Tue Mar 18 16:20:46 2025 +0100 |
committer | Tom Rini <trini@konsulko.com> | Thu Apr 03 16:54:49 2025 -0600 |
tree | 6c9732af20397ac2ce457c9f5b3c808b24cda398 | |
parent | 72aacdac231e1ca0bdf497152c8c18d018fd6a3d [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>
diff --git a/lib/membuf.c b/lib/membuf.c index b13998c..695d16d 100644 --- a/lib/membuf.c +++ b/lib/membuf.c
@@ -384,6 +384,6 @@ void membuf_dispose(struct membuf *mb) { - free(&mb->start); + free(mb->start); membuf_uninit(mb); }