Patryk Obara <patryk.obara@xxxxxxxxx> writes: > Actually, I don't think I needed to remove free(graft) line, but I don't > know if freeing NULL is considered ok in git code. Let me know if I > should bring it back, please. Calling free(var) when var may or may not be NULL is perfectly fine. We even discourage people from writing: if (var) free(var); because an unconditional call to free(var) is sufficient.