Add allocation and freeing functions for struct refs
authorDaniel Barkalow <barkalow@iabervon.org>
Tue, 10 Jul 2007 04:47:23 +0000 (00:47 -0400)
committerJunio C Hamano <gitster@pobox.com>
Tue, 10 Jul 2007 06:39:59 +0000 (23:39 -0700)
commitdfd255dd1a7c04ad24891db50e5d80d96f93fd4a
tree0a7640ebb74f4f2b60ccc1dbc7cc87070b777f04
parent54dadbdb29668fbd51effefd0a0c65d915f5422b
Add allocation and freeing functions for struct refs

Instead of open-coding allocation wherever it happens, have a function.
Also, add a function to free a list of refs, which we currently never
actually do.

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