git-compat-util: add a FREE_AND_NULL() wrapper around free(ptr); ptr = NULL