diff options
| author | Carlo Marcelo Arenas Belón <carenas@gmail.com> | 2018-10-20 00:33:34 -0700 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2018-10-22 12:37:14 +0900 |
| commit | b42ad7d57d5c3a0d11effd01a7e025abee98509c (patch) | |
| tree | 669691ea9d4437ce6807cddd48e475ed9f57384e | |
| parent | Document update for nd/unpack-trees-with-cache-tree (diff) | |
| download | git-b42ad7d57d5c3a0d11effd01a7e025abee98509c.tar.gz git-b42ad7d57d5c3a0d11effd01a7e025abee98509c.zip | |
read-cache: use of memory after it is freed
introduced with c46c406ae1e (trace.h: support nested performance tracing)
on Aug 18, 2018 but not affecting maint
Signed-off-by: Carlo Marcelo Arenas Belón <carenas@gmail.com>
Acked-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
| -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 41f313bc9e..66fc5355e7 100644 --- a/read-cache.c +++ b/read-cache.c @@ -2038,8 +2038,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; } |
