]> git.ipfire.org Git - thirdparty/libarchive.git/commitdiff
Fixed memory leaks
authorClaybird <claybird.without.wing@gmail.com>
Wed, 16 Oct 2019 11:39:42 +0000 (20:39 +0900)
committerClaybird <claybird.without.wing@gmail.com>
Wed, 6 Nov 2019 11:34:31 +0000 (20:34 +0900)
libarchive/archive_read_support_format_lha.c

index 16480b3cd7402887c80f8a7fe177b916bc7c287b..9181eced497f2bdcf3a050dfb563aee59da6bca1 100644 (file)
@@ -1646,7 +1646,9 @@ archive_read_format_lha_cleanup(struct archive_read *a)
 
        lzh_decode_free(&(lha->strm));
        archive_string_free(&(lha->dirname));
+       archive_wstring_free(&(lha->dirname_w));
        archive_string_free(&(lha->filename));
+       archive_wstring_free(&(lha->filename_w));
        archive_string_free(&(lha->uname));
        archive_string_free(&(lha->gname));
        archive_wstring_free(&(lha->ws));