diff options
author | Carlo Marcelo Arenas Belón <carenas@gmail.com> | 2018-10-20 10:33:34 +0300 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2018-10-22 06:37:14 +0300 |
commit | b42ad7d57d5c3a0d11effd01a7e025abee98509c (patch) | |
tree | 669691ea9d4437ce6807cddd48e475ed9f57384e /read-cache.c | |
parent | 5f4436a7211de7cd7552f6cf3bbb35147db1a070 (diff) |
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>
Diffstat (limited to 'read-cache.c')
-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; } |