Code

Fix memory leak in helper method for disconnect
authorDaniel Barkalow <barkalow@iabervon.org>
Wed, 18 Nov 2009 01:42:21 +0000 (02:42 +0100)
committerJunio C Hamano <gitster@pobox.com>
Wed, 18 Nov 2009 05:39:58 +0000 (21:39 -0800)
commitf2a37151d4624906e34a9bcafb2ad79d0e8cb7ec
tree9e0d14a46079f8a1ef9d94c73144a4d14e6f2e3b
parentcd0f8e6d63d3e2744d7d3b2329238be7d064a8ea
Fix memory leak in helper method for disconnect

Since some cases may need to disconnect from the helper and reconnect,
wrap the function that just disconnects in a function that also frees
transport->data.

Signed-off-by: Daniel Barkalow <barkalow@iabervon.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
transport-helper.c