Diff of /libperf_events/operf_process_info.cpp [a39d41] .. [6ee980] Maximize Restore

  Switch to side-by-side view

--- a/libperf_events/operf_process_info.cpp
+++ b/libperf_events/operf_process_info.cpp
@@ -362,11 +362,11 @@
 		 */
 		if (mmappings_from_parent[cur->start_addr]) {
 			mmappings_from_parent[cur->start_addr] = false;
-			mmappings.erase(it);
+			mmappings.erase(it++);
 		} else {
 			process_mapping(cur, false);
-		}
-		it++;
+			it++;
+		}
 	}
 	if (parent_of_fork) {
 		parent_of_fork->remove_forked_process(this->pid);