Commit dde7602a by Russell Belfer

Fix memory leak with checkout tree iterator

parent 0d70f650
...@@ -44,7 +44,6 @@ typedef struct { ...@@ -44,7 +44,6 @@ typedef struct {
git_checkout_opts opts; git_checkout_opts opts;
bool opts_free_baseline; bool opts_free_baseline;
char *pfx; char *pfx;
git_iterator *baseline;
git_index *index; git_index *index;
git_pool pool; git_pool pool;
git_vector removes; git_vector removes;
...@@ -1241,7 +1240,7 @@ cleanup: ...@@ -1241,7 +1240,7 @@ cleanup:
git_diff_list_free(data.diff); git_diff_list_free(data.diff);
git_iterator_free(workdir); git_iterator_free(workdir);
git_iterator_free(data.baseline); git_iterator_free(baseline);
git__free(actions); git__free(actions);
git__free(counts); git__free(counts);
checkout_data_clear(&data); checkout_data_clear(&data);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment