storage: Trivial change to free pathname in common part of the code