Fixed memory leak.
diff --git a/coders/svg.c b/coders/svg.c
index 66601e2..573643a 100644
--- a/coders/svg.c
+++ b/coders/svg.c
@@ -3524,6 +3524,10 @@
blob_length=2048;
blob=(unsigned char *) ImageToBlob(image_info,clone_image,&blob_length,
exception);
+ clone_image=DestroyImage(clone_image);
+ image_info=DestroyImageInfo(image_info);
+ if (blob == (unsigned char *) NULL)
+ return(MagickFalse);
encode_length=0;
base64=Base64Encode(blob,blob_length,&encode_length);
blob=(unsigned char *) RelinquishMagickMemory(blob);
@@ -3542,6 +3546,7 @@
if (i > 76)
(void) WriteBlobString(image,"\n");
}
+ base64=DestroyString(base64);
(void) WriteBlobString(image,"\" />\n");
(void) WriteBlobString(image,"</svg>\n");
}