Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
Merge branch 'nd/unpack-trees-with-cache-tree'
author
Junio C Hamano
<gitster@pobox.com>
Tue, 6 Nov 2018 06:50:20 +0000
(15:50 +0900)
committer
Junio C Hamano
<gitster@pobox.com>
Tue, 6 Nov 2018 06:50:20 +0000
(15:50 +0900)
Trivial bugfix.
* nd/unpack-trees-with-cache-tree:
read-cache: use of memory after it is freed
read-cache.c
patch
|
blob
|
history
raw
(from parent 1:
9ffcf75
)
diff --git
a/read-cache.c
b/read-cache.c
index d57958233e82df6551fdc890f1238ae65beb8940..f3a848d61c154ec99b4c45d3404380810c18eec1 100644
(file)
--- a/
read-cache.c
+++ b/
read-cache.c
@@
-2297,8
+2297,8
@@
int read_index_from(struct index_state *istate, const char *path,
freshen_shared_index(base_path, 0);
merge_base_index(istate);
post_read_index_from(istate);
- free(base_path);
trace_performance_leave("read cache %s", base_path);
+ free(base_path);
return ret;
}