Commit b47cf4f6 authored by Kamil Dudka's avatar Kamil Dudka
Browse files

tool_getparam: fix memleak in handling the -E option

parent a15b2b6c
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -1302,11 +1302,11 @@ ParameterError getparameter(char *flag, /* f or -long-flag */
      {
        char *certname, *passphrase;
        parse_cert_parameter(nextarg, &certname, &passphrase);
        if(certname) {
          GetStr(&config->cert, certname);
        }
        Curl_safefree(config->cert);
        config->cert = certname;
        if(passphrase) {
          GetStr(&config->key_passwd, passphrase);
          Curl_safefree(config->key_passwd);
          config->key_passwd = passphrase;
        }
        cleanarg(nextarg);
      }