EpetraExt: fix memspace handle closing
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