summaryrefslogtreecommitdiff
path: root/dir.c
diff options
context:
space:
mode:
authorPeter Zhu <peter@peterzhu.ca>2025-09-13 14:10:57 -0400
committerPeter Zhu <peter@peterzhu.ca>2025-09-15 09:25:20 -0400
commitb0ce1fd549a3227ef4d9f65e4cdf0df93e4adeb0 (patch)
tree23ff1570f9d6fb06781982fb0e324e47e8bbbdbf /dir.c
parent70210acab046239beedf880edf0330e3cb389ce8 (diff)
Combine rb_imemo_tmpbuf_auto_free_pointer and rb_imemo_tmpbuf_new
Diffstat (limited to 'dir.c')
-rw-r--r--dir.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/dir.c b/dir.c
index b934f2795c..25ed59c668 100644
--- a/dir.c
+++ b/dir.c
@@ -1480,7 +1480,7 @@ rb_dir_getwd_ospath(void)
VALUE cwd;
VALUE path_guard;
- path_guard = rb_imemo_tmpbuf_auto_free_pointer();
+ path_guard = rb_imemo_tmpbuf_new();
path = ruby_getcwd();
rb_imemo_tmpbuf_set_ptr(path_guard, path);
#ifdef __APPLE__