]> granicus.if.org Git - openjpeg/commitdiff
[1.5] remove one obvious memory leak from test functions
authorMickael Savinaud <savmickael@users.noreply.github.com>
Fri, 21 Oct 2011 08:57:00 +0000 (08:57 +0000)
committerMickael Savinaud <savmickael@users.noreply.github.com>
Fri, 21 Oct 2011 08:57:00 +0000 (08:57 +0000)
CHANGES
tests/comparePGXimages.c

diff --git a/CHANGES b/CHANGES
index 9213c5858c2e21bcdce34d8dcc37504c10d5a87b..5565b914c0756492bbf310e6d98b4d9d127b1090 100644 (file)
--- 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
 
index 48189156bbd41cc29c77ee638f51781aa20cc6c8..b5b782fb3bc02d7546db3677821d1d9f351054d3 100644 (file)
@@ -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);