[Spice-commits] src/spicy.c

Victor Toso de Carvalho victortoso at kemper.freedesktop.org
Tue May 10 11:00:32 UTC 2016


 src/spicy.c |    1 +
 1 file changed, 1 insertion(+)

New commits:
commit e6ca385208d68204c470b51e312582bba8076551
Author: Victor Toso <victortoso at redhat.com>
Date:   Tue May 10 09:52:33 2016 +0200

    spicy: fix leak of transfer hash table
    
    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)
    
    Acked-by: Christophe Fergeau <cfergeau at redhat.com>

diff --git a/src/spicy.c b/src/spicy.c
index 2865678..04d707b 100644
--- a/src/spicy.c
+++ b/src/spicy.c
@@ -1737,6 +1737,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--;


More information about the Spice-commits mailing list