found error, the 112 bytes was simply the tiny space that the Mode class (not including all the Petsc structures) occupies and that I forgot to delete after initializing it with new in ReadModes