Skip to content

Commit a5706f7

Browse files
funny-falcontmm1
authored andcommitted
a bit of sanity
1 parent d77e59e commit a5706f7

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

internal.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -293,6 +293,7 @@ rb_method_cache_clear(VALUE klass)
293293
struct rb_classext_struct *ext = RCLASS(klass)->ptr;
294294
if (ext->cache.entries) {
295295
xfree(ext->cache.entries);
296+
ext->cache.entries = NULL;
296297
}
297298
}
298299

0 commit comments

Comments
 (0)