memory issue fix
authornishi <nishi@d27a3e52-49c5-7645-884c-6793ebffc270>
Tue, 9 Apr 2024 23:25:17 +0000 (23:25 +0000)
committernishi <nishi@d27a3e52-49c5-7645-884c-6793ebffc270>
Tue, 9 Apr 2024 23:25:17 +0000 (23:25 +0000)
git-svn-id: file:///raid/svn-main/nishi-libw3/trunk@296 d27a3e52-49c5-7645-884c-6793ebffc270

Example/w3b/w3b.c
W3Version.h.m4

index 286edbc4c066734a9ae4eb967275b8bb31a4665e..847aee3075f5df43faac4166d4988059083707a1 100644 (file)
@@ -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;
index 45f54081f8578c81500fa5658510040b9795c85a..9578c281ca327f2d2ebecec3ceaa636bec9994d1 100644 (file)
@@ -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}}, {{/**