Permalink
Browse files

Plug address space leaks on Windows.

  • Loading branch information...
1 parent 8d099e5 commit 1f63131b4a216071923dea99f07b07068fdc2fb7 @ggcueroad ggcueroad committed Dec 3, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 libarchive/archive_read_disk_windows.c
@@ -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);

0 comments on commit 1f63131

Please sign in to comment.