Commit 4f8ebd16 authored by James Housley's avatar James Housley
Browse files

Curl_scp_done() needs to call libssh2_channel_free() to prevent a

memory leak, and it is the right thing to do.
parent cd4e6fbc
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -755,6 +755,7 @@ CURLcode Curl_scp_done(struct connectdata *conn, CURLcode status,
      infof(conn->data, "Failed to stop libssh2 channel subsystem\n");
    }
#endif /* !(LIBSSH2_APINO >= 200706012030) */
    libssh2_channel_free(scp->ssh_channel);
  }

  if (scp->ssh_session) {