commit | 9e116928d2e988d2cacd89c096296b2e03ba8de8 | [log] [tgz] |
---|---|---|
author | cristy <urban-warrior@git.imagemagick.org> | Fri Feb 12 20:58:13 2010 +0000 |
committer | cristy <urban-warrior@git.imagemagick.org> | Fri Feb 12 20:58:13 2010 +0000 |
tree | 21a51ebbbc4bf32a3daffb4a01e9c0e5c6c3d716 | |
parent | 5ee247a8fb30f9004712a0f5464a564d12f4d39d [diff] [blame] |
diff --git a/magick/cache.c b/magick/cache.c index 4202322..98a2cf5 100644 --- a/magick/cache.c +++ b/magick/cache.c
@@ -694,7 +694,13 @@ p=(CacheInfo *) GetNextKeyInSplayTree(cache_resources); } if (q != (CacheInfo *) NULL) - (void) close(q->file); /* relinquish least recently used cache */ + { + /* + Close least recently used cache. + */ + (void) close(q->file); + q->file=(-1); + } UnlockSemaphoreInfo(cache_semaphore); }