I am having some weird errors while trying to de-allocate memory. I have two class inspector and hypergraph. Both are singleton objects. I am trying to deallocate the memory for those. the inspector object is deleted from a client code. The inspector deallocates the hypergraph. But looks like after executing the destructor for the hypergraph class, control is not returned to the destructor of the inspector class.
Here is the code for the destructor for the inspector
Well, the actually code is in MPI. Using gdb with MPI is a pain. Hence the poor man's debugging. The code above through is called by only one process, so there is definitely no deadlocks happening