diff options
author | Christian Grothoff <christian@grothoff.org> | 2010-03-12 15:35:15 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2010-03-12 15:35:15 +0000 |
commit | 726ab85b22937b21e47f8c8dd71f9bc164f26f75 (patch) | |
tree | ed1ba2aa95660a93efedb2651e274e22cea6a317 | |
parent | d1f3028d75e82fa6a26a30a059b11f42e360b614 (diff) | |
download | libextractor-726ab85b22937b21e47f8c8dd71f9bc164f26f75.tar.gz libextractor-726ab85b22937b21e47f8c8dd71f9bc164f26f75.zip |
fix
-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); |