Will this leak if `result == NULL`?