]> Nishi Git Mirror - libw3.git/commitdiff
url segfault fix
authornishi <nishi@d27a3e52-49c5-7645-884c-6793ebffc270>
Fri, 26 Jan 2024 04:43:06 +0000 (04:43 +0000)
committernishi <nishi@d27a3e52-49c5-7645-884c-6793ebffc270>
Fri, 26 Jan 2024 04:43:06 +0000 (04:43 +0000)
git-svn-id: file:///raid/svn-main/nishi-libw3/trunk@82 d27a3e52-49c5-7645-884c-6793ebffc270

Library/URL.c
W3Version.h.p

index 7f5d054d14ac53d8d1a8c9c2868db186aa6d8730..48b1f406976df31dee5a078cb6d0e423917b0b32 100644 (file)
@@ -75,6 +75,9 @@ struct W3URL* W3_Parse_URL(const char* _url) {
                        __W3_Debug("URL", str);
                        free(str);
                }
+       }else{
+               W3_Free_URL(r);
+               r = NULL;
        }
        return r;
 }
index 8be5efdfb13f42a0c4ccb3925c7036c4d546a600..b835f8ebf23022174316318161fa7c5fe1f15a5c 100644 (file)
@@ -6,7 +6,7 @@
 extern "C" {
 #endif
 
-#define LIBW3_VERSION "1.4" \
+#define LIBW3_VERSION "1.4A" \
 SUFFIX
 
 #ifdef __cplusplus