Skip to content

EpetraExt: fix memspace handle closing

James Willenbring requested to merge ibaned:epetraext-warnings into develop

Created by: ibaned

This was pointed out by GCC's "maybe uninitialized variable" warning (memspace_id would be closed uninitialized if the loop iterates zero times). However, it seems to be a legitimate bug in closing this handle, i.e. it seems like it is only closing the last created handle but it should close all of them. I suspect the old code leaks memory.

@trilinos/epetra

Merge request reports