From f43dac0df29c137ae966362f7faf26084468a0fb Mon Sep 17 00:00:00 2001 From: Peter Zhu Date: Sun, 24 Sep 2023 09:07:52 -0400 Subject: Add rb_hash_free for the GC to use --- internal/hash.h | 1 + 1 file changed, 1 insertion(+) (limited to 'internal/hash.h') diff --git a/internal/hash.h b/internal/hash.h index d1848e5408..fe859cb716 100644 --- a/internal/hash.h +++ b/internal/hash.h @@ -87,6 +87,7 @@ int rb_hash_stlike_delete(VALUE hash, st_data_t *pkey, st_data_t *pval); int rb_hash_stlike_foreach_with_replace(VALUE hash, st_foreach_check_callback_func *func, st_update_callback_func *replace, st_data_t arg); int rb_hash_stlike_update(VALUE hash, st_data_t key, st_update_callback_func *func, st_data_t arg); VALUE rb_ident_hash_new_with_size(st_index_t size); +void rb_hash_free(VALUE hash); static inline unsigned RHASH_AR_TABLE_SIZE_RAW(VALUE h); static inline VALUE RHASH_IFNONE(VALUE h); -- cgit v1.2.3