From: z2_ <88509734+z2-2z@users.noreply.github.com> Date: Fri, 28 Jun 2024 12:45:47 +0000 (+0200) Subject: x509asn1: remove superfluous free() X-Git-Tag: curl-8_9_0~159 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3a537a4db9e65e545ec45b1b5d5575ee09a2569d;p=thirdparty%2Fcurl.git x509asn1: remove superfluous free() --- diff --git a/lib/vtls/x509asn1.c b/lib/vtls/x509asn1.c index f71ab0b90a..1bc4243dda 100644 --- a/lib/vtls/x509asn1.c +++ b/lib/vtls/x509asn1.c @@ -393,7 +393,6 @@ utf8asn1str(struct dynbuf *to, int type, const char *from, const char *end) if(wc >= 0x00000800) { if(wc >= 0x00010000) { if(wc >= 0x00200000) { - free(buf); /* Invalid char. size for target encoding. */ return CURLE_WEIRD_SERVER_REPLY; }