free(NULL) is safe.