tests: add a special setup where rebase.useBuiltin is off
[gitweb.git] / read-cache.c
index 53733d651db59881c4378ee5787311eef1f6ff99..8c924506dd96037c1d7c0fa93e4223f9274a851f 100644 (file)
@@ -2303,8 +2303,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;
 }