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

Christophe Fergeau cfergeau at redhat.com
Tue May 10 09:16:43 UTC 2016


Acked-by: Christophe Fergeau <cfergeau at redhat.com>

On Tue, May 10, 2016 at 10:28:28AM +0200, Victor Toso wrote:
> 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 at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/spice-devel
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <https://lists.freedesktop.org/archives/spice-devel/attachments/20160510/69d20fb5/attachment.sig>


More information about the Spice-devel mailing list