From: Simon Glass Date: Tue, 18 Mar 2025 15:20:46 +0000 (+0100) Subject: membuf: Correct implementation of membuf_dispose() X-Git-Tag: v2025.07-rc1~119^2~8^2~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=44e763bd6624f23fe6d94340efb43c627b5ce4a7;p=pandora-u-boot.git membuf: Correct implementation of membuf_dispose() This should free the pointer, not the address of the pointer. Fix it. Signed-off-by: Simon Glass --- 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); }