Remove temporary Pointer copy which confused Coverity scan
into thinking there is a double-free. Should resolve Issue #
1461170
and maybe others.
}
void
-getOutgoingAddress(HttpRequest * request, Comm::ConnectionPointer conn)
+getOutgoingAddress(HttpRequest * request, const Comm::ConnectionPointer &conn)
{
// skip if an outgoing address is already set.
if (!conn->local.isAnyAddr()) return;
PconnRace pconnRace; ///< current pconn race state
};
-void getOutgoingAddress(HttpRequest * request, Comm::ConnectionPointer conn);
+void getOutgoingAddress(HttpRequest * request, const Comm::ConnectionPointer &conn);
/// a collection of previously used persistent Squid-to-peer HTTP(S) connections
extern PconnPool *fwdPconnPool;