diff options
Diffstat (limited to 'net/ftp/ftp_directory_listing_buffer.cc')
-rw-r--r-- | net/ftp/ftp_directory_listing_buffer.cc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/net/ftp/ftp_directory_listing_buffer.cc b/net/ftp/ftp_directory_listing_buffer.cc index 030da83..d7833e8 100644 --- a/net/ftp/ftp_directory_listing_buffer.cc +++ b/net/ftp/ftp_directory_listing_buffer.cc @@ -27,6 +27,7 @@ std::string DetectEncoding(const std::string& text) { &status); const UCharsetMatch* match = ucsdet_detect(detector, &status); const char* encoding = ucsdet_getName(match, &status); + ucsdet_close(detector); // Should we check the quality of the match? A rather arbitrary number is // assigned by ICU and it's hard to come up with a lower limit. if (U_FAILURE(status)) |