Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem with cmor close deallocating forcings in the MIP tables #2

Closed
jkettleb opened this issue May 23, 2013 · 1 comment
Closed

Comments

@jkettleb
Copy link
Contributor

I think there is a problem in cmor close - I started seeing seg faults at the end of last week, which I think I've tracked down to a piece of code for deallocating the forcings in the MIP tables.

Here's a patch:

--- 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;

Could you check you agree with the patch and make the appropriate changes in the repository?

@doutriaux1
Copy link
Collaborator

patch is already in devel (you submitted it a while ago). Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants