The C standard allows `free(NULL)`, so let's allow `release(NULL)` too.