Fixed possible memory leak.
diff --git a/coders/pdf.c b/coders/pdf.c
index 62c5d30..ae1ac0b 100644
--- a/coders/pdf.c
+++ b/coders/pdf.c
@@ -648,6 +648,7 @@
page_geometry=GetPageGeometry(option);
flags=ParseMetaGeometry(page_geometry,&page.x,&page.y,&page.width,
&page.height);
+ page_geometry=DestroyString(page_geometry);
if (flags == NoValue)
{
(void) ThrowMagickException(exception,GetMagickModule(),OptionError,
@@ -659,7 +660,6 @@
-0.5);
page.height=(size_t) ceil((double) (page.height*image->resolution.y/
delta.y) -0.5);
- page_geometry=DestroyString(page_geometry);
fitPage=MagickTrue;
}
(void) CloseBlob(image);