Commit 15108d63 authored by Mike Crowe's avatar Mike Crowe Committed by Daniel Stenberg
Browse files

Avoid leak of local device string when reusing connection

Ensure that the copy of the CURLOPT_INTERFACE string is freed if we
decide we can reuse an existing connection.
parent c771968a
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -4779,6 +4779,7 @@ static void reuse_conn(struct connectdata *old_conn,
  Curl_safefree(old_conn->passwd);
  Curl_safefree(old_conn->proxyuser);
  Curl_safefree(old_conn->proxypasswd);
  Curl_safefree(old_conn->localdev);

  Curl_llist_destroy(old_conn->send_pipe, NULL);
  Curl_llist_destroy(old_conn->recv_pipe, NULL);