[spice-gtk v1] spicy: fix leak of transfer hash table

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



184 (88 direct, 96 indirect) bytes in 1 blocks are definitely lost in
loss record 10,025 of 11,515 at 0x4C28BF6: malloc
(vg_replace_malloc.c:299)
 by 0x9D33218: g_malloc (gmem.c:94)
 by 0x9D49D02: g_slice_alloc (gslice.c:1025)
 by 0x9D1CCBD: g_hash_table_new_full (ghash.c:711)
 by 0x406196: connection_new (spicy.c:1693)
 by 0x405BFE: main (spicy.c:1852)
---
 src/spicy.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/spicy.c b/src/spicy.c
index 0475530..d19b95a 100644
--- a/src/spicy.c
+++ b/src/spicy.c
@@ -1715,6 +1715,7 @@ static void connection_disconnect(spice_connection *conn)
 static void connection_destroy(spice_connection *conn)
 {
     g_object_unref(conn->session);
+    g_hash_table_unref(conn->transfers);
     free(conn);
 
     connections--;
-- 
2.5.5

_______________________________________________
Spice-devel mailing list
Spice-devel@xxxxxxxxxxxxxxxxxxxxx
https://lists.freedesktop.org/mailman/listinfo/spice-devel




[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]     [Monitors]