Fix double free when getcwd does not allocate buffer
getcwd
Do not free the result at normal return from ruby_getcwd.
ruby_getcwd
Fix double free when
getcwd
does not allocate bufferDo not free the result at normal return from
ruby_getcwd
.