On Tue, Jul 05, 2011 at 01:01:54PM +0200, Marc-André Lureau wrote:
> We don't see it in the diff, but the resulting code may leak here:
> 
>     g_object_get(G_OBJECT(session),
>                  "smartcard-db", &dbname,
>                  "smartcard-certificates", &certificates,
>                  NULL);
> 
>     if ((certificates == NULL) || (g_strv_length(certificates) != 3))
>         goto init;
> 
> Either dbname, certificates or both.

/me hides :(((
Yep, let's drop the patch

> Btw, shouldn't we print a warning/error if g_strv_length(certificates) != 3 ?

Sounds like we should GErrors to the API... (applies also to your comments
for patch 4/4)

Christophe

Attachment: pgp4XJbMgjFSm.pgp
Description: PGP signature

_______________________________________________
Spice-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/spice-devel

Reply via email to