From fcdeb3e5a8540694bdd670096af0d4a375d2ccb8 Mon Sep 17 00:00:00 2001 From: nishi Date: Fri, 26 Jan 2024 06:03:19 +0000 Subject: [PATCH] memleak fix git-svn-id: file:///raid/svn-main/nishi-libw3/trunk@87 d27a3e52-49c5-7645-884c-6793ebffc270 --- Example/W3B/w3b.c | 1 + 1 file changed, 1 insertion(+) diff --git a/Example/W3B/w3b.c b/Example/W3B/w3b.c index 7ff5058..c7a65cd 100644 --- a/Example/W3B/w3b.c +++ b/Example/W3B/w3b.c @@ -31,6 +31,7 @@ void data_handler(struct W3* w3, char* data, size_t size) { memcpy(databuf, oldbuf, datalen); memcpy(databuf + datalen, data, size); datalen += size; + free(oldbuf); } } -- 2.43.0