From 28cc4f75437eec9e76f52723f042445332fd86f5 Mon Sep 17 00:00:00 2001 From: nobu Date: Thu, 29 Mar 2012 14:50:20 +0000 Subject: * st.c (st_update): pass pointer to key to the callback function. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35172 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- load.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'load.c') diff --git a/load.c b/load.c index b85d903f6f..26d8568a03 100644 --- a/load.c +++ b/load.c @@ -417,7 +417,7 @@ load_lock(const char *ftptr) } static int -release_barrier(st_data_t key, st_data_t *value, st_data_t done, int existing) +release_barrier(st_data_t *key, st_data_t *value, st_data_t done, int existing) { VALUE barrier = (VALUE)*value; if (!existing) return ST_STOP; @@ -425,7 +425,7 @@ release_barrier(st_data_t key, st_data_t *value, st_data_t done, int existing) /* still in-use */ return ST_CONTINUE; } - xfree((char *)key); + xfree((char *)*key); return ST_DELETE; } -- cgit v1.2.3