]> granicus.if.org Git - imagemagick/commitdiff
(no commit message)
authorcristy <urban-warrior@git.imagemagick.org>
Sat, 2 May 2015 23:23:59 +0000 (23:23 +0000)
committercristy <urban-warrior@git.imagemagick.org>
Sat, 2 May 2015 23:23:59 +0000 (23:23 +0000)
MagickWand/magick-image.c

index b7be47e090440cfd796b383f8cce4b1b67bd288f..ced3008c1512bb9168f619a859e9ec73e10d0f3d 100644 (file)
@@ -7414,19 +7414,12 @@ WandExport MagickBooleanType MagickPingImageBlob(MagickWand *wand,
   ImageInfo
     *read_info;
 
-  unsigned char
-    *data;
-
   assert(wand != (MagickWand *) NULL);
   assert(wand->signature == WandSignature);
   if (wand->debug != MagickFalse)
     (void) LogMagickEvent(WandEvent,GetMagickModule(),"%s",wand->name);
-  data=(unsigned char *) AcquireQuantumMemory(length,sizeof(*data));
-  if (data == (unsigned char *) NULL)
-    ThrowWandException(WandError,"MemoryAllocationFailed",wand->name);
-  (void) memcpy(data,blob,length*sizeof(*data));
   read_info=CloneImageInfo(wand->image_info);
-  SetImageInfoBlob(read_info,data,length);
+  SetImageInfoBlob(read_info,blob,length);
   images=PingImage(read_info,wand->exception);
   read_info=DestroyImageInfo(read_info);
   if (images == (Image *) NULL)