Code

Fix memory leaks when disconnecting transport instances
authorShawn O. Pearce <spearce@spearce.org>
Wed, 19 Sep 2007 04:49:42 +0000 (00:49 -0400)
committerJunio C Hamano <gitster@pobox.com>
Wed, 19 Sep 2007 10:22:31 +0000 (03:22 -0700)
commitf4e95765b042f3e31a8902e78a5101768b33e445
tree1bd7da85c736adede0cd986799670ee9f8efc168
parent50ab5fd3fc16fbe01170059977533fa2c7c4d448
Fix memory leaks when disconnecting transport instances

Most transport implementations tend to allocate a data buffer
in the struct transport instance during transport_get() so we
need to free that data buffer when we disconnect it.

Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
transport.c