diff --git a/coders/jp2.c b/coders/jp2.c
index de03feb..fcae3b6 100644
--- a/coders/jp2.c
+++ b/coders/jp2.c
@@ -1010,6 +1010,8 @@
     }
   status=jas_image_encode(jp2_image,jp2_stream,format,options) != 0 ?
     MagickTrue : MagickFalse;
+  if (options != (char *) NULL)
+    options=DestroyString(options);
   (void) jas_stream_close(jp2_stream);
   for (i=0; i < (ssize_t) number_components; i++)
     jas_matrix_destroy(pixels[i]);