Fixed potential free() of non-malloc()-ed string