1
0
Fork 0
mirror of https://github.com/git/git.git synced 2024-05-30 21:56:15 +02:00

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
This commit is contained in:
Junio C Hamano 2018-11-06 15:50:20 +09:00
commit 65f7a3232b

View File

@ -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;
}