git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[PATCH] transport-helper: remove duplicate free()

From
Tay Ray Chuan <rctay89@gmail.com>
Date
Dec 2, 2009, 07:39 UTC
Message-ID
<20091202153950.c18095b7.rctay89@gmail.com>

Remove the free() invocation on transport->data in release_helper(), as disconnect_helper() has already done so.

Signed-off-by: Tay Ray Chuan <rctay89@gmail.com>
---
  Applies on top of 'next'.
 transport-helper.c |    1 -
 1 files changed, 0 insertions(+), 1 deletions(-)
diff --git a/transport-helper.c b/transport-helper.c
index 9c5f860..2f77bd5 100644
--- a/transport-helper.c
+++ b/transport-helper.c
@@ -196,7 +196,6 @@ static int release_helper(struct transport *transport)
 	free_refspec(data->refspec_nr, data->refspecs);
 	data->refspecs = NULL;
 	disconnect_helper(transport);
-	free(transport->data);
 	return 0;
 }

--
1.6.6.rc0.306.g5bb1c0
Next: Daniel Barkalow
Message 1 of 4 in “transport-helper: remove duplicate free()”
  1. transport-helper: remove duplicate free()Tay Ray Chuan, Dec 2, 2009
  2. Daniel BarkalowDec 2, 2009
  3. Junio C HamanoDec 2, 2009
  4. Tay Ray ChuanDec 2, 2009

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.