server-info: clean up after writing info/packs
authorJeff King <redacted>
Sat, 13 Sep 2014 20:19:38 +0000 (16:19 -0400)
committerJunio C Hamano <redacted>
Mon, 15 Sep 2014 18:39:54 +0000 (11:39 -0700)
commit3907a4078a89cffde2e2e0e61a3bd41efba96c49
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 <redacted>
Signed-off-by: Junio C Hamano <redacted>
server-info.c
git clone https://git.99rst.org/PROJECT