Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
describe: use argv-array
[gitweb.git]
/
read-cache.c
diff --git
a/read-cache.c
b/read-cache.c
index 5e30746886d477a0dc69853efd42283f2ac8c712..b297addb576dec45fa9b82ef4a0ffb350f9cfc6c 100644
(file)
--- a/
read-cache.c
+++ b/
read-cache.c
@@
-1520,8
+1520,9
@@
int discard_index(struct index_state *istate)
free_name_hash(istate);
cache_tree_free(&(istate->cache_tree));
istate->initialized = 0;
-
- /* no need to throw away allocated active_cache */
+ free(istate->cache);
+ istate->cache = NULL;
+ istate->cache_alloc = 0;
return 0;
}