From: Tay Ray Chuan Date: Thu, 3 Dec 2009 23:31:44 +0000 (+0800) Subject: builtin-push: don't access freed transport->url X-Git-Tag: v1.7.0-rc0~101^2~10 X-Git-Url: https://git.lorimer.id.au/gitweb.git/diff_plain/53970b92d9dc883669f3a9b79b5e39e73931b331?hp=53970b92d9dc883669f3a9b79b5e39e73931b331 builtin-push: don't access freed transport->url Move the failed push message to before transport_disconnect() so that it doesn't access transport->url after transport has been free()'d (in transport_disconnect()). Additionally, make the failed push message more accurate by moving it before transport_disconnect(), so that it doesn't report errors due to a failed disconnect. Signed-off-by: Tay Ray Chuan Acked-by: Daniel Barkalow Signed-off-by: Junio C Hamano ---