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>
Carlo Marcelo Arenas Belón committed
Oct 20, 2018 at 00:33 UTC
b42ad7d57d5c3a0d11effd01a7e025abee98509c
1 file changed
+1
-1
read-cache.c
+1
-1
@@ -2038,8 +2038,8 @@ int read_index_from(struct index_state *istate, const char *path,
2038
freshen_shared_index(base_path, 0);
2039
merge_base_index(istate);
2040
post_read_index_from(istate);
2041
- free(base_path);
2041
trace_performance_leave("read cache %s", base_path);
2042
+ free(base_path);
2043
return ret;
2044
}
2045