]> git.ipfire.org Git - thirdparty/libarchive.git/commitdiff
Plug address space leaks on Windows.
authorMichihiro NAKAJIMA <ggcueroad@gmail.com>
Mon, 3 Dec 2012 11:25:48 +0000 (20:25 +0900)
committerMichihiro NAKAJIMA <ggcueroad@gmail.com>
Mon, 3 Dec 2012 11:25:48 +0000 (20:25 +0900)
libarchive/archive_read_disk_windows.c

index c117faf69a8acb8f0db0fdc62f9c4f1f86da614e..9c5420d80e77a428f4162b47c5ee0fd6075fe7c5 100644 (file)
@@ -2042,7 +2042,7 @@ tree_free(struct tree *t)
        free(t->filesystem_table);
        for (i = 0; i < MAX_OVERLAPPED; i++) {
                if (t->ol[i].buff)
-                       VirtualFree(t->ol[i].buff, t->ol[i].buff_size, MEM_DECOMMIT);
+                       VirtualFree(t->ol[i].buff, 0, MEM_RELEASE);
                CloseHandle(t->ol[i].ol.hEvent);
        }
        free(t);