From: nishi Date: Fri, 26 Jan 2024 04:43:06 +0000 (+0000) Subject: url segfault fix X-Git-Url: http://10.10.0.4:5575/?a=commitdiff_plain;h=7f242d70656634cd0774ae7c1de27f5615ddab9f;p=libw3.git url segfault fix git-svn-id: file:///raid/svn-main/nishi-libw3/trunk@82 d27a3e52-49c5-7645-884c-6793ebffc270 --- diff --git a/Library/URL.c b/Library/URL.c index 7f5d054..48b1f40 100644 --- a/Library/URL.c +++ b/Library/URL.c @@ -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; } diff --git a/W3Version.h.p b/W3Version.h.p index 8be5efd..b835f8e 100644 --- a/W3Version.h.p +++ b/W3Version.h.p @@ -6,7 +6,7 @@ extern "C" { #endif -#define LIBW3_VERSION "1.4" \ +#define LIBW3_VERSION "1.4A" \ SUFFIX #ifdef __cplusplus