]> git.ipfire.org Git - thirdparty/libarchive.git/commitdiff
Fix memory leak.
authorMichihiro NAKAJIMA <ggcueroad@gmail.com>
Sun, 18 Oct 2009 04:47:49 +0000 (00:47 -0400)
committerMichihiro NAKAJIMA <ggcueroad@gmail.com>
Sun, 18 Oct 2009 04:47:49 +0000 (00:47 -0400)
SVN-Revision: 1540

libarchive/archive_read_support_format_iso9660.c

index 9da095de2bc7c2d3f44518725f420a3c3c68c1d3..47ff13488d6c091c3490a220430e560b9eb9c904 100644 (file)
@@ -2386,6 +2386,7 @@ next_cache_entry(struct iso9660 *iso9660)
                         * happen.
                         */
                        file->next = NULL;
+                       file->refcount++;
                        *empty_files.last = file;
                        empty_files.last = &(file->next);
                } else {