Don't free dirname() return value