Code

docs: describe behavior of relative submodule URLs
[git.git] / submodule.c
index 0b709bc2914335853e7525076f5e1d026d5dd779..09a41b59befca75feb6fec95d6c98bb51e10b987 100644 (file)
@@ -391,7 +391,7 @@ static void commit_need_pushing(struct commit *commit, struct commit_list *paren
        rev.diffopt.format_callback_data = needs_pushing;
        diff_tree_combined(commit->object.sha1, parents, n, 1, &rev);
 
-       free(parents);
+       free((void *)parents);
 }
 
 int check_submodule_needs_pushing(unsigned char new_sha1[20], const char *remotes_name)