`Loc::toChars` never returns null, so the checks are unnecessary.  I also recommend just leaking the result and getting rid of the variable altogether.