diff options
Diffstat (limited to 'src/main/extractor.c')
-rw-r--r-- | src/main/extractor.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/main/extractor.c b/src/main/extractor.c index 6ec15e1..f1daadc 100644 --- a/src/main/extractor.c +++ b/src/main/extractor.c | |||
@@ -1714,10 +1714,12 @@ extract (struct EXTRACTOR_PluginList *plugins, | |||
1714 | close (shmid); | 1714 | close (shmid); |
1715 | shm_unlink (fn); | 1715 | shm_unlink (fn); |
1716 | if (NULL != tptr) | 1716 | if (NULL != tptr) |
1717 | munmap (tptr, tsize); | 1717 | { |
1718 | if (tshmid != -1) | 1718 | munmap (tptr, tsize); |
1719 | close (tshmid); | 1719 | shm_unlink (tfn); |
1720 | shm_unlink (tfn); | 1720 | if (tshmid != -1) |
1721 | close (tshmid); | ||
1722 | } | ||
1721 | #else | 1723 | #else |
1722 | UnmapViewOfFile (ptr); | 1724 | UnmapViewOfFile (ptr); |
1723 | CloseHandle (map); | 1725 | CloseHandle (map); |