]> granicus.if.org Git - cgit/commit
cache.c: fix cache_ls
authorJohn Keeping <john@keeping.me.uk>
Sat, 18 May 2013 17:28:14 +0000 (18:28 +0100)
committerJason A. Donenfeld <Jason@zx2c4.com>
Sat, 18 May 2013 17:45:28 +0000 (19:45 +0200)
commitf75900b04f73725c00abb46405b51ade59313ecc
tree9c7e90aabe09418b43fbb41c99bb4965d1e7e14e
parent7966fd9b8e32562196b52abd32f6ba1e15228b81
cache.c: fix cache_ls

Commit fb3655d (use struct strbuf instead of static buffers, 2013-04-06)
broke the logic in cache.c::cache_ls by failing to set slot->cache_name
before calling open_slot.

While fixing this, also free the strbufs added by that commit once we're
done with them.

Signed-off-by: John Keeping <john@keeping.me.uk>
cache.c