Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
remote.c: add command line option parser for "--force-with-lease"
[gitweb.git]
/
read-cache.c
diff --git
a/read-cache.c
b/read-cache.c
index b15bc096ea42f8d70d475e3c20fa9e5d54486a1c..d5201f9b06c3f5ac53b8a6f5396fbf3392f1b3b2 100644
(file)
--- a/
read-cache.c
+++ b/
read-cache.c
@@
-1535,8
+1535,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;
}