]> granicus.if.org Git - imagemagick/commitdiff
...
authorCristy <urban-warrior@imagemagick.org>
Sun, 9 Apr 2017 22:18:29 +0000 (18:18 -0400)
committerCristy <urban-warrior@imagemagick.org>
Sun, 9 Apr 2017 22:18:29 +0000 (18:18 -0400)
MagickCore/memory.c

index c24448f19199b482f602c507338e78f03db70d63..1d07edfffea38fb411e72302cd3f33044a40203f 100644 (file)
@@ -665,8 +665,8 @@ MagickExport MemoryInfo *AcquireVirtualMemory(const size_t count,
             }
           RelinquishMagickResource(DiskResource,extent);
         }
+      RelinquishMagickResource(MapResource,extent);
     }
-  RelinquishMagickResource(MapResource,extent);
   if (memory_info->blob == NULL)
     {
       memory_info->blob=AcquireMagickMemory(extent);