[cmor] 127/190: Applied Jamie's patched with deallocating bug

Alastair McKinstry mckinstry at moszumanska.debian.org
Tue Jul 21 12:54:46 UTC 2015


This is an automated email from the git hooks/post-receive script.

mckinstry pushed a commit to branch debian/master
in repository cmor.

commit 6a7a17f2b6fc3da3e2d1d3a7baec948c0791a3ab
Author: Charles Doutriaux <doutriaux1 at llnl.gov>
Date:   Fri May 17 09:24:09 2013 -0700

    Applied Jamie's patched with deallocating bug
---
 Src/cmor.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/Src/cmor.c b/Src/cmor.c
index c1ca361..a25894e 100644
--- a/Src/cmor.c
+++ b/Src/cmor.c
@@ -3917,8 +3917,8 @@ int cmor_close(void)
     }
     if (cmor_tables[i].nforcings>0) {
       for (j=0;j<cmor_tables[i].nforcings;j++) {
-	free(cmor_tables[i].forcings[i]);
-	cmor_tables[i].forcings[i]=NULL;
+	free(cmor_tables[i].forcings[j]);
+	cmor_tables[i].forcings[j]=NULL;
       }
       free(cmor_tables[i].forcings);
       cmor_tables[i].forcings=NULL;

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/cmor.git



More information about the debian-science-commits mailing list