diff options
author | Junio C Hamano <gitster@pobox.com> | 2018-11-06 15:50:20 +0900 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2018-11-06 15:50:20 +0900 |
commit | 65f7a3232be8f2cbb0a6e841c1a7691db2e8bd03 (patch) | |
tree | 66fa5f59fbad8315dc13f52083845c259f9819f1 | |
parent | Merge branch 'nd/completion-negation' (diff) | |
parent | read-cache: use of memory after it is freed (diff) | |
download | tgif-65f7a3232be8f2cbb0a6e841c1a7691db2e8bd03.tar.xz |
Merge branch 'nd/unpack-trees-with-cache-tree'
Trivial bugfix.
* nd/unpack-trees-with-cache-tree:
read-cache: use of memory after it is freed
-rw-r--r-- | read-cache.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/read-cache.c b/read-cache.c index d57958233e..f3a848d61c 100644 --- 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; } |