]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/dmclock/sim/src/simulate.h
update sources to v12.1.0
[ceph.git] / ceph / src / dmclock / sim / src / simulate.h
index 18e752d8a354f513dcfeb58a34e8f70ee07e9ff5..a967d004b6dcfcb0658edc2aa7740a6e8ffb5a21 100644 (file)
@@ -88,6 +88,17 @@ namespace crimson {
        // empty
       }
 
+      ~Simulation() {
+       for (auto c : clients) {
+         TC* cp = c.second;
+         delete cp;
+       }
+
+       for (auto s : servers) {
+         delete s.second;
+       }
+      }
+
       uint get_client_count() const { return client_count; }
       uint get_server_count() const { return server_count; }
       TC& get_client(ClientId id) { return *clients[id]; }