Commit dad99881 by Edward Thomson

push tests: deeply free the push status

Don't just free the push status structure, actually free the strings that were
strdup'd into the struct as well.
parent ca2eb460
...@@ -152,8 +152,12 @@ static void do_verify_push_status(record_callbacks_data *data, const push_status ...@@ -152,8 +152,12 @@ static void do_verify_push_status(record_callbacks_data *data, const push_status
git_buf_dispose(&msg); git_buf_dispose(&msg);
} }
git_vector_foreach(actual, i, iter) git_vector_foreach(actual, i, iter) {
git__free(iter); push_status *s = (push_status *)iter;
git__free(s->ref);
git__free(s->msg);
git__free(s);
}
git_vector_free(actual); git_vector_free(actual);
} }
......
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