From 7f242d70656634cd0774ae7c1de27f5615ddab9f Mon Sep 17 00:00:00 2001 From: nishi Date: Fri, 26 Jan 2024 04:43:06 +0000 Subject: [PATCH] url segfault fix git-svn-id: file:///raid/svn-main/nishi-libw3/trunk@82 d27a3e52-49c5-7645-884c-6793ebffc270 --- Library/URL.c | 3 +++ W3Version.h.p | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) 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 -- 2.43.0