[tarantool-patches] [PATCH 1/5] swim: fix an obvious leak in swim_delete()

Vladislav Shpilevoy v.shpilevoy at tarantool.org
Wed May 22 22:52:17 MSK 2019


Follow up #3234
---
 src/lib/swim/swim.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/lib/swim/swim.c b/src/lib/swim/swim.c
index 1283520d3..67700027e 100644
--- a/src/lib/swim/swim.c
+++ b/src/lib/swim/swim.c
@@ -1956,6 +1956,7 @@ swim_delete(struct swim *swim)
 	wait_ack_heap_destroy(&swim->wait_ack_heap);
 	mh_swim_table_delete(swim->members);
 	free(swim->shuffled);
+	free(swim);
 }
 
 /**
-- 
2.20.1 (Apple Git-117)





More information about the Tarantool-patches mailing list