]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
x509asn1: remove superfluous free()
authorz2_ <88509734+z2-2z@users.noreply.github.com>
Fri, 28 Jun 2024 12:45:47 +0000 (14:45 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Fri, 28 Jun 2024 12:45:47 +0000 (14:45 +0200)
lib/vtls/x509asn1.c

index f71ab0b90a593153bda62759620cdf346b8136e9..1bc4243ddae343dda1d8bd15c871c595b76cbd02 100644 (file)
@@ -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;
             }