From: nishi Date: Fri, 26 Jan 2024 06:03:19 +0000 (+0000) Subject: memleak fix X-Git-Url: http://10.10.0.4:5575/?a=commitdiff_plain;h=fcdeb3e5a8540694bdd670096af0d4a375d2ccb8;p=libw3.git memleak fix git-svn-id: file:///raid/svn-main/nishi-libw3/trunk@87 d27a3e52-49c5-7645-884c-6793ebffc270 --- 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); } }