server-info: clean up after writing info/packs
commit3907a4078a89cffde2e2e0e61a3bd41efba96c49
authorJeff King <peff@peff.net>
Sat, 13 Sep 2014 20:19:38 +0000 (13 16:19 -0400)
committerJunio C Hamano <gitster@pobox.com>
Mon, 15 Sep 2014 18:39:54 +0000 (15 11:39 -0700)
treebd5ad6621db53131f3e3362b1f5a0fe21256594b
parentd38379ece9216735ecc0ffd76c4c4e3da217daec
server-info: clean up after writing info/packs

We allocate pack information in a static global list but
never clean it up. This leaks memory, and means that calling
update_server_info twice will generate a buggy file (it will
have duplicate entries).

Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
server-info.c