From: Mickael Savinaud <savmickael@users.noreply.github.com>
Date: Fri, 21 Oct 2011 08:57:00 +0000 (+0000)
Subject: [1.5] remove one obvious memory leak from test functions
X-Git-Tag: version.1.5~113
X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=6a1530e4b1f6a607ed07cf9814d38e3759045f55;p=openjpeg

[1.5] remove one obvious memory leak from test functions
---

diff --git a/CHANGES b/CHANGES
index 9213c585..5565b914 100644
--- a/CHANGES
+++ b/CHANGES
@@ -5,6 +5,9 @@ What's New for OpenJPEG
 ! : changed
 + : added
 
+October 21, 2011
+* [mickael] remove one obvious memory leak from test functions
+
 October 20, 2011
 * [mickael] remove obvious memory leak from applications
 
diff --git a/tests/comparePGXimages.c b/tests/comparePGXimages.c
index 48189156..b5b782fb 100644
--- a/tests/comparePGXimages.c
+++ b/tests/comparePGXimages.c
@@ -596,6 +596,7 @@ int main(int argc, char **argv)
     }
   else
     {
+	if (imageBase) opj_image_destroy(imageBase);
     if (inParam.tabMSEvalues) free(inParam.tabMSEvalues);
     if (inParam.tabPEAKvalues) free(inParam.tabPEAKvalues);
     if (inParam.base_filename) free(inParam.base_filename);