X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=submodule.c;h=52cdcc6a6347a786deafad34efdb9dc4dc3670ff;hb=96ec7b1e708863d0cd6b8e72a986d6f0a1bb64db;hp=0fd10a0fdbf5d1af10819dea808b43f6b13b98a8;hpb=4c00c852b3f2596f246811ca933eef357183581b;p=git.git diff --git a/submodule.c b/submodule.c index 0fd10a0fd..52cdcc6a6 100644 --- a/submodule.c +++ b/submodule.c @@ -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)