From dce9c062f53854ba8b093d34f3f007f3f3467549 Mon Sep 17 00:00:00 2001 From: nishi Date: Tue, 9 Apr 2024 23:25:17 +0000 Subject: [PATCH] memory issue fix git-svn-id: file:///raid/svn-main/nishi-libw3/trunk@296 d27a3e52-49c5-7645-884c-6793ebffc270 --- Example/w3b/w3b.c | 2 +- W3Version.h.m4 | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Example/w3b/w3b.c b/Example/w3b/w3b.c index 286edbc..847aee3 100644 --- a/Example/w3b/w3b.c +++ b/Example/w3b/w3b.c @@ -282,8 +282,8 @@ void html_handler(char* tagname, char* attr) { char* alt = W3_Tag_Attr(attr, "alt"); if(alt != NULL) { printf("[%s]", alt); - free(alt); x += 2 + strlen(alt); + free(alt); } else { printf("[IMG]"); x += 5; diff --git a/W3Version.h.m4 b/W3Version.h.m4 index 45f5408..9578c28 100644 --- a/W3Version.h.m4 +++ b/W3Version.h.m4 @@ -60,7 +60,7 @@ const char* W3_Get_Version(void); * @note W3_Get_Version を使用することを検討してください。 * */ -#define LIBW3_VERSION "2.22F" \ +#define LIBW3_VERSION "2.22G" \ SUFFIX ifdef({{HTTP_SUPPORT}}, {{/** -- 2.43.0