]> git.ipfire.org Git - thirdparty/libarchive.git/commitdiff
Fix a memory leak.
authorMichihiro NAKAJIMA <ggcueroad@gmail.com>
Fri, 6 Apr 2012 03:40:46 +0000 (12:40 +0900)
committerMichihiro NAKAJIMA <ggcueroad@gmail.com>
Fri, 6 Apr 2012 03:56:00 +0000 (12:56 +0900)
libarchive/archive_read_open_filename.c

index 9b65fec4abc2b0c6a3ac61f358cb42451c4c511e..dadd44ff0f5b9e87790cc2bf5a572fe0bc796f81 100644 (file)
@@ -185,6 +185,7 @@ archive_read_open_filename_w(struct archive *a, const wchar_t *wfilename,
                                    "Failed to convert a wide-character"
                                    " filename to a multi-byte filename");
                        archive_string_free(&fn);
+                       free(mine);
                        return (ARCHIVE_FATAL);
                }
                mine->filename_type = FNT_MBS;