status=connect(client_socket,result->ai_addr,(socklen_t) result->ai_addrlen);\r
if (status == -1)\r
{\r
+ CLOSE_SOCKET(client_socket);\r
(void) ThrowMagickException(exception,GetMagickModule(),CacheError,\r
"DistributedPixelCache","'%s'",hostname);\r
return(-1);\r
packet_size+=quantum_info->depth/8;
if (compression == RLECompression)
packet_size++;
- length=image->columns;
length=MagickMax(BZipMaxExtent(packet_size*image->columns),ZipMaxExtent(
packet_size*image->columns));
if ((compression == BZipCompression) || (compression == ZipCompression))