diff --git a/ext/charlock_holmes/encoding_detector.c b/ext/charlock_holmes/encoding_detector.c index 203b110..64127ee 100644 --- a/ext/charlock_holmes/encoding_detector.c +++ b/ext/charlock_holmes/encoding_detector.c @@ -350,6 +350,7 @@ static VALUE rb_get_supported_encodings(VALUE klass) rb_iv_set(klass, "encoding_list", rb_encoding_list); ucsdet_close(csd); + uenum_close(encoding_list); } return rb_encoding_list;